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 | |
|---|---|---|
|
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. |
|
ObjectContext(String) | Initializes a new instance of the ObjectContext class with the given connection string and default entity container name. |
|
ObjectContext(EntityConnection, String) | Initializes a new instance of the ObjectContext class with a given connection and entity container name. |
|
ObjectContext(String, String) | Initializes a new instance of the ObjectContext class with a given connection string and entity container name. |