ModelCustomizer ModelCustomizer Class

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.

Syntax

Declaration

public class ModelCustomizer : IModelCustomizerPublic Class ModelCustomizer
    Implements IModelCustomizer

Inheritance Hierarchy

  • System.Object
    System.Object
  • ModelCustomizer
    ModelCustomizer

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

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.

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

Details

Assembly

Microsoft.EntityFrameworkCore.dll