Condividi tramite


DatabaseLogFormatter.Opened Metodo

Definizione

Chiamata dopo Open() o la sua controparte asincrona viene richiamata. L'implementazione predefinita di questo metodo filtra impostando DbContextContextin , se presente e quindi registra l'evento.

public virtual void Opened (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext interceptionContext);
abstract member Opened : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext -> unit
override this.Opened : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext -> unit
Public Overridable Sub Opened (connection As DbConnection, interceptionContext As DbConnectionInterceptionContext)

Parametri

connection
DbConnection

Connessione aperta.

interceptionContext
DbConnectionInterceptionContext

Informazioni contestuali associate alla chiamata.

Implementazioni

Si applica a