Beispiel #1
0
 void method4()
 {
     Northwnd db = new Northwnd("");
     // <Snippet4>
     string str = db.ReverseCustName("LINQ to SQL");
     // </Snippet4>
 }
Beispiel #2
0
 void method5()
 {
     Northwnd db = new Northwnd("");
     // <Snippet5>
     var custQuery =
         from cust in db.Customers
         select new { cust.ContactName, Title =
                          db.ReverseCustName(cust.ContactTitle) };
     // </Snippet5>
 }