TransactionHandler.Initialize Method
Initializes the properties of this instance.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Initialize(DbContext, DbConnection) | Initializes this instance using the specified context. |
![]() | Initialize(ObjectContext) | Initializes this instance using the specified context. |
TransactionHandler.Initialize Method (DbContext, DbConnection)
Initializes this instance using the specified context.
Parameters
- context
-
Type:
System.Data.Entity.DbContext
The context for which transaction operations will be handled.
- connection
-
Type:
System.Data.Common.DbConnection
The connection to use for the initialization.
This method is called by migrations. It is important that no action is performed on the specified context that causes it to be initialized.
TransactionHandler.Initialize Method (ObjectContext)
Initializes this instance using the specified context.
Parameters
- context
-
Type:
System.Data.Entity.Core.Objects.ObjectContext
The context for which transaction operations will be handled.