Advertisement
Guest User

ZadA3

a guest
Oct 23rd, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication2
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             using (NorthwindEntities context = new NorthwindEntities())
  14.             {
  15.                 IEnumerable<string> names = (from e in context.Employees
  16.                                    where e.City == "London"
  17.                                    select e.FirstName + " " + e.LastName);
  18.                 foreach (String s in names)
  19.                 {
  20.                     Console.WriteLine(s);
  21.                 }
  22.                
  23.             }
  24.             Console.ReadLine();
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement