CommitFailureHandler.FromContext Method

 

Gets the CommitFailureHandler associated with the context if there is one; otherwise returns null.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticFromContext(DbContext)

Gets the CommitFailureHandler associated with the context if there is one; otherwise returns null.

System_CAPS_pubmethodSystem_CAPS_staticFromContext(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.

public static CommitFailureHandler FromContext(
	DbContext context
)

Parameters

context
Type: System.Data.Entity.DbContext

The context.


CommitFailureHandler.FromContext Method (ObjectContext)

Gets the CommitFailureHandler associated with the context if there is one; otherwise returns null.

public static CommitFailureHandler FromContext(
	ObjectContext context
)

Parameters

context
Type: System.Data.Entity.Core.Objects.ObjectContext

The context.