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