Share via


ModelCustomizer.Customize(ModelBuilder, DbContext) Method

Definition

Performs additional configuration of the model in addition to what is discovered by convention. This default implementation builds the model for a given context by calling OnModelCreating(ModelBuilder) on the context.

public virtual void Customize (Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Microsoft.EntityFrameworkCore.DbContext dbContext);
public virtual void Customize (Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Microsoft.EntityFrameworkCore.DbContext context);
abstract member Customize : Microsoft.EntityFrameworkCore.ModelBuilder * Microsoft.EntityFrameworkCore.DbContext -> unit
override this.Customize : Microsoft.EntityFrameworkCore.ModelBuilder * Microsoft.EntityFrameworkCore.DbContext -> unit
abstract member Customize : Microsoft.EntityFrameworkCore.ModelBuilder * Microsoft.EntityFrameworkCore.DbContext -> unit
override this.Customize : Microsoft.EntityFrameworkCore.ModelBuilder * Microsoft.EntityFrameworkCore.DbContext -> unit
Public Overridable Sub Customize (modelBuilder As ModelBuilder, dbContext As DbContext)
Public Overridable Sub Customize (modelBuilder As ModelBuilder, context As DbContext)

Parameters

modelBuilder
ModelBuilder

The builder being used to construct the model.

dbContextcontext
DbContext

The context instance that the model is being created for.

Implements

Applies to