Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbContext Constructor (ObjectContext, Boolean)

Entity Framework 5.0

Constructs a new context instance around an existing ObjectContext.

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

public:
DbContext(
	ObjectContext^ objectContext, 
	bool dbContextOwnsObjectContext
)

Parameters

objectContext
Type: System.Data.Objects::ObjectContext

An existing ObjectContext to wrap the new context.

dbContextOwnsObjectContext
Type: System::Boolean

If set to true the ObjectContext is disposed when the DbContext is disposed, otherwise the caller must dispose the connection.

Show:
© 2015 Microsoft