O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Querying an Entity Model

You’ll find the classes generated from the conceptual model in the entity model in a code file located below the data model in Solution Explorer. It’s normally hidden, but you can see it if you select show all files in Solution Explorer.

Entity Framework uses a “central administrator” class for the business objects created from the conceptual model. This central administrator class is (contrary to what you might know from LINQ to SQL) not called DataContext; it’s called ObjectContext.

'''<summary>
''' No Metadata Documentation available.
'''</summary>
Partial Public Class AdventureWorksEntities
    Inherits ObjectContext

The object context represents business object query collections in the form of ObjectSet(Of Type)[33] classes. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required