Export (0) Print
Expand All

ObjectContext Constructor

Initializes a new instance of the ObjectContext class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method ObjectContext(EntityConnection) Initializes a new instance of the ObjectContext class with the given connection. During construction, the metadata workspace is extracted from the EntityConnection object.
Public method ObjectContext(String) Initializes a new instance of the ObjectContext class with the given connection string and default entity container name.
Protected method ObjectContext(EntityConnection, String) Initializes a new instance of the ObjectContext class with a given connection and entity container name.
Protected method ObjectContext(String, String) Initializes a new instance of the ObjectContext class with a given connection string and entity container name.
Top
Show:
© 2014 Microsoft