Share via


IDbConfigurationInterceptor Interface

Definition

An object that implements this interface can be registered with DbInterception to receive notifications when Entity Framework loads the application's DbConfiguration.

public interface IDbConfigurationInterceptor : System.Data.Entity.Infrastructure.Interception.IDbInterceptor
type IDbConfigurationInterceptor = interface
    interface IDbInterceptor
Public Interface IDbConfigurationInterceptor
Implements IDbInterceptor
Derived
Implements

Remarks

Interceptors can also be registered in the config file of the application. See http://go.microsoft.com/fwlink/?LinkId=260883 for more information about Entity Framework configuration.

Methods

Loaded(DbConfigurationLoadedEventArgs, DbConfigurationInterceptionContext)

Occurs during EF initialization after the DbConfiguration has been constructed but just before it is locked ready for use. Use this event to inspect and/or override services that have been registered before the configuration is locked. Note that an interceptor of this type should be used carefully since it may prevent tooling from discovering the same configuration that is used at runtime.

Applies to