TransactionHandler.Initialize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Initialize(ObjectContext) |
Initializes this instance using the specified context. |
Initialize(DbContext, DbConnection) |
Initializes this instance using the specified context. |
Initialize(ObjectContext)
Initializes this instance using the specified context.
public virtual void Initialize (System.Data.Entity.Core.Objects.ObjectContext context);
abstract member Initialize : System.Data.Entity.Core.Objects.ObjectContext -> unit
override this.Initialize : System.Data.Entity.Core.Objects.ObjectContext -> unit
Public Overridable Sub Initialize (context As ObjectContext)
Parameters
- context
- ObjectContext
The context for which transaction operations will be handled.
Applies to
Initialize(DbContext, DbConnection)
Initializes this instance using the specified context.
public virtual void Initialize (System.Data.Entity.DbContext context, System.Data.Common.DbConnection connection);
abstract member Initialize : System.Data.Entity.DbContext * System.Data.Common.DbConnection -> unit
override this.Initialize : System.Data.Entity.DbContext * System.Data.Common.DbConnection -> unit
Public Overridable Sub Initialize (context As DbContext, connection As DbConnection)
Parameters
- context
- DbContext
The context for which transaction operations will be handled.
- connection
- DbConnection
The connection to use for the initialization.
Remarks
This method is called by migrations. It is important that no action is performed on the specified context that causes it to be initialized.
Applies to
Entity Framework