DataContext object is constructed in LINQ to SQL using :
A. NorthwindDataContext db = new malloc NorthwindDataContext();
B. NorthwindDataContext db = new NorthwindDataContext();
C. NorthwindDataContext db = new NorthwindData();
D. None of the mentioned
Answer:A
DataContext object is constructed in LINQ to SQL using :
A. NorthwindDataContext db = new malloc NorthwindDataContext(); B. NorthwindDataContext db = new NorthwindDataContext(); C. NorthwindDataContext db = new NorthwindData(); D. None of the mentioned
Explanation:To query a database using LINQ to SQL, we first need to construct a DataContext object. 7. Which of the following code will retrieve all products in the Beverages category sorted by product name ?