CommitFailureHandler.FromContext Method
Gets the CommitFailureHandler associated with the context if there is one; otherwise returns null.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | FromContext(DbContext) | Gets the CommitFailureHandler associated with the context if there is one; otherwise returns null. |
![]() ![]() | FromContext(ObjectContext) | Gets the CommitFailureHandler associated with the context if there is one; otherwise returns null. |
CommitFailureHandler.FromContext Method (DbContext)
Gets the CommitFailureHandler associated with the context if there is one; otherwise returns null.
Parameters
- context
-
Type:
System.Data.Entity.DbContext
The context.
Return Value
Type: System.Data.Entity.Infrastructure.CommitFailureHandlerThe associated CommitFailureHandler.
CommitFailureHandler.FromContext Method (ObjectContext)
Gets the CommitFailureHandler associated with the context if there is one; otherwise returns null.
Parameters
- context
-
Type:
System.Data.Entity.Core.Objects.ObjectContext
The context.
Return Value
Type: System.Data.Entity.Infrastructure.CommitFailureHandlerThe associated CommitFailureHandler.