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)

new : 
        objectContext:ObjectContext * 
        dbContextOwnsObjectContext:bool -> DbContext


Type: System.Data.Objects.ObjectContext

An existing ObjectContext to wrap the new context.

Type: System.Boolean

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

© 2015 Microsoft