Compartilhar via


CommitFailureHandler.FromContext Método

Definição

Sobrecargas

FromContext(ObjectContext)

Obtém o CommitFailureHandler associado ao context se houver um; caso contrário, retorna null.

FromContext(DbContext)

Obtém o CommitFailureHandler associado ao context se houver um; caso contrário, retorna null.

FromContext(ObjectContext)

Obtém o CommitFailureHandler associado ao context se houver um; caso contrário, retorna null.

public static System.Data.Entity.Infrastructure.CommitFailureHandler FromContext (System.Data.Entity.Core.Objects.ObjectContext context);
static member FromContext : System.Data.Entity.Core.Objects.ObjectContext -> System.Data.Entity.Infrastructure.CommitFailureHandler
Public Shared Function FromContext (context As ObjectContext) As CommitFailureHandler

Parâmetros

context
ObjectContext

O contexto

Retornos

O CommitFailureHandler associado.

Aplica-se a

FromContext(DbContext)

Obtém o CommitFailureHandler associado ao context se houver um; caso contrário, retorna null.

public static System.Data.Entity.Infrastructure.CommitFailureHandler FromContext (System.Data.Entity.DbContext context);
static member FromContext : System.Data.Entity.DbContext -> System.Data.Entity.Infrastructure.CommitFailureHandler
Public Shared Function FromContext (context As DbContext) As CommitFailureHandler

Parâmetros

context
DbContext

O contexto

Retornos

O CommitFailureHandler associado.

Aplica-se a