/// <summary> /// This method is called when the context has been initialized, but /// before the model has been locked down and used to initialize the context. /// </summary> /// <param name="modelBuilder">The builder that defines the model for the context being created.</param> protected override void OnModelCreating(DbModelBuilder modelBuilder) { ContextHelper.AddConfigurations(modelBuilder); }
/// <summary> /// This method is called when the context has been initialized, but /// before the model has been locked down and used to initialize the context. /// </summary> /// <param name="modelBuilder">The builder that defines the model for the context being created.</param> protected override void OnModelCreating(DbModelBuilder modelBuilder) { ContextHelper.AddConfigurations(modelBuilder); modelBuilder.Conventions.Add(new GetAddressStoreFunctionInjectionConvention()); }