Export (0) Print
Expand All

DbCompiledModel Class

Entity Framework 5.0

An immutable representation of an Entity Data Model (EDM) model that can be used to create an ObjectContext or can be passed to the constructor of a DbContext. For increased performance, instances of this type should be cached and re-used to construct contexts.

System.Object
  System.Data.Entity.Infrastructure.DbCompiledModel

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

'Declaration
Public Class DbCompiledModel
'Usage
Dim instance As DbCompiledModel

The DbCompiledModel type exposes the following members.

  NameDescription
Public methodCreateObjectContext(Of TContext)Creates an instance of ObjectContext or class derived from ObjectContext. Note that an instance of DbContext can be created instead by using the appropriate DbContext constructor. If a derived ObjectContext is used, then it must have a public constructor with a single EntityConnection parameter. The connection passed is used by the ObjectContext created, but is not owned by the context. The caller must dispose of the connection once the context has been disposed.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft