RelationalModelCustomizer.Customize(ModelBuilder, DbContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs additional configuration of the model in addition to what is discovered by convention. This implementation builds the model for a given context by calling OnConfiguring(DbContextOptionsBuilder) on the context.
Also, entity types found as DbSet<TEntity> properties on the context are mapped to tables named for the DbSet property names, and public static methods on the context marked with DbFunctionAttribute are mapped to database functions.
public override void Customize (Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Microsoft.EntityFrameworkCore.DbContext context);
override this.Customize : Microsoft.EntityFrameworkCore.ModelBuilder * Microsoft.EntityFrameworkCore.DbContext -> unit
Public Overrides Sub Customize (modelBuilder As ModelBuilder, context As DbContext)
Parameters
- modelBuilder
- ModelBuilder
The builder being used to construct the model.
- context
- DbContext
The context instance that the model is being created for.
Applies to
Entity Framework