Incorrect: The DataSet object is used with traditional ADO.NET.
Incorrect: The SqlDataAdapter object is used with traditional ADO.NET.
Correct: The DataContext object is the primary object for moving data when working with LINQ to SQL.
Incorrect: Entity objects work with the DataContext object, but the DataContext object is the primary object used with LINQ to SQL.
2.
Correct Answer: B
Incorrect: Skip is an extension method that skips over elements you’ve already displayed.
Correct: The Delay Loaded property indicates that you want lazy loading of the column.
Incorrect: Take is an extension method that takes x elements from the sequence. It is used in conjunction with the Skip method to skip over elements that you’ve already displayed.
Incorrect: The Auto Generated Value property indicates that this column automatically gets its value from the database.
A.7.2. Lesson 2
1.
Correct Answer: C
Incorrect: Contains checks for existence of an item, and Intersect gets items that two collections have in common.
Incorrect: GroupBy performs group/aggregate operations, and Last returns the last item in the collection.
Correct: Skip skips over previously used items, and Take retrieves another page of items.
Incorrect: First retrieves the first item in the collection, and Last retrieves the last item in the collection.
2.
Correct Answer: B
Incorrect: The let keyword declares a range variable in your LINQ query.
Correct: The equals keyword is used with the join keyword to specify the join criteria.
Incorrect: The into keyword references the results of a join, group by, or select clause.
Incorrect: The by keyword is used with the group keyword to specify the grouping criteria.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.