ObjectContext Constructor

 

Initializes a new instance of the ObjectContext class.

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

NameDescription
System_CAPS_pubmethodObjectContext(EntityConnection^)

Initializes a new instance of the ObjectContext class with the given connection. During construction, the metadata workspace is extracted from the EntityConnection object.

System_CAPS_protmethodObjectContext(EntityConnection^, String^)

Initializes a new instance of the ObjectContext class with a given connection and entity container name.

System_CAPS_pubmethodObjectContext(String^)

Initializes a new instance of the ObjectContext class with the given connection string and default entity container name.

System_CAPS_protmethodObjectContext(String^, String^)

Initializes a new instance of the ObjectContext class with a given connection string and entity container name.

Return to top
Show: