DbConfiguration.Loaded Event

 

Occurs during EF initialization after the DbConfiguration has been constructed but just before it is locked ready for use.

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

public static event EventHandler<DbConfigurationLoadedEventArgs> Loaded

Handlers can only be added before EF starts to use the configuration and so handlers should generally be added as part of application initialization. Do not access the DbConfiguration static methods inside the handler; instead use the the members of DbConfigurationLoadedEventArgs to get current services and/or add overrides.