예제 #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();
 }