Ispirer Ispirer
 


Ispirer Home Page Ispirer SQLWays Product Page - Migration to .NET Request SQLWays

LINQ to SQL

This article describes LINQ to SQL, .NET language-integrated query for relational databases.

LINQ Query Definition and Execution

LINQ allows defining a query in a high level query expression. The query is not executed immediately, it is a definition.

C# Example:

var q =
   from c in db.Customers
   where c.State == "CA"
   select c;

The query is executed when the application enumerates its content.

C# Example:

foreach (var cust in q)
 Console.WriteLine(cust.CompanyName);


Ispirer Home Page Ispirer SQLWays Product Page - Migration to .NET Request SQLWays

sqlways/dotnet/linq-to-sql.txt · Last modified: March 20, 2013, 03:53:38 AM (external edit)
 
© 1999-2018, Ispirer Systems Ltd.
All Rights Reserved.  Privacy Statement