- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Xml.Linq;
- using System.Text.RegularExpressions;
- namespace ForgetCode
- {
- class IntroToLINQ
- {
- static void Main()
- {
- database db = new database(@"c:\northwnd.mdf");
- // Query for customers in London.
- IQueryable<Customer> custQuery =
- from cust in db.Customers
- where cust.City == "London"
- select cust;
- }
- }
- }