Пример #1
0
 static void AllStudentsBeginninWithM(Context ct)
 {
     var students = from s in ct.Student
                    select s;
     foreach (var s in students)
         Console.WriteLine(s.Name);
     
 }
Пример #2
0
 static void Main(string[] args)
 {
     using(var c = new Context())
     {
         AllStudentsBeginninWithM(c);
     }
     Console.ReadKey();
 }