SalesDBDataContext dataContext = new SalesDBDataContext(); Customer customer = dataContext.Customers.First(); Console.WriteLine("ID = {0}, Name = {1}", customer.CustomerId, customer.Name); Customer custQuery = (from custs in dataContext.Customers where custs.CustomerId == 1 select custs) .First(); Console.WriteLine("ID = {0}, Name = {1}", custQuery.CustomerId, custQuery.Name);
Copyright © 2012 - All Rights Reserved - VKInfotek.com