ModelCustomizer ModelCustomizer Class

Definition

Builds the model for a given context. This default implementation builds the model by calling OnConfiguring(DbContextOptionsBuilder) on the context.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class ModelCustomizer : IModelCustomizer
Public Class ModelCustomizer
    Implements IModelCustomizer
Inheritance
System.ObjectSystem.Object
ModelCustomizerModelCustomizer
Implements

Methods

Customize(ModelBuilder, DbContext) Customize(ModelBuilder, DbContext)

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 OnConfiguring(DbContextOptionsBuilder) on the context.

public virtual void Customize(ModelBuilder modelBuilder, DbContext dbContext)
Public Overridable Sub Customize(modelBuilder As ModelBuilder, dbContext As DbContext)
Parameters
modelBuilder
ModelBuilder ModelBuilder

The builder being used to construct the model.

dbContext
DbContext DbContext

The context instance that the model is being created for.

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object