Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbContext Constructor

Entity Framework 5.0

Constructs a new context instance using conventions to create the name of the database to which a connection will be made. By convention the name is the full name (namespace + class name) of the derived context class. For more information on how this is used to create a connection, see the remarks section for DbContext.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

Protected Sub New
Dim instance As New DbContext()
© 2015 Microsoft