Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

  NameDescription
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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.