ObjectContext Constructor
.NET Framework (current version)
Initializes a new instance of the ObjectContext class.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
| 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(EntityConnection^, String^) | Initializes a new instance of the ObjectContext class with a given connection and entity container name. |
![]() | ObjectContext(String^) | Initializes a new instance of the ObjectContext class with the given connection string and default entity container name. |
![]() | ObjectContext(String^, String^) | Initializes a new instance of the ObjectContext class with a given connection string and entity container name. |
Show:

