Skip to Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Querying EDMs with LINQ to Entities

LINQ to Entities is the standard LINQ provider for querying entities within an Entity Data Model. You use the same LINQ syntax for querying entities, too, so you will not encounter particular difficulties.

Using Standard Query Operators

LINQ to Entities supports standard query operators described in Chapter 23, “LINQ to Objects,” to perform complex query expressions.

The one big difference is about eager loading, which is explained after showing the code. As in LINQ to SQL, LINQ to Entities queries return an IQueryable(Of T), unless you convert the result into a different type using extension methods at the end of the query. The following code returns the list of products for the specified category, taking ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book