Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Ex1()
- {
- using (var context = new NorthwindEntities())
- {
- //Afisati toate informatiile despre angajatii din Londra.
- //select * from Customers where City='London'
- var results = from c in context.Customers
- where c.City.Equals("London")
- orderby c.CustomerID
- select new
- {
- c.CustomerID,
- c.CompanyName,
- c.City
- };
- foreach (var item in results)
- {
- Console.WriteLine("{0} \t {1} \t ",
- item.CustomerID,
- item.CompanyName
- );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement