C# 클래스 Microsoft.EntityFrameworkCore.Infrastructure.ModelCustomizer

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

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

The service lifetime is ServiceLifetime.Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as ServiceLifetime.Scoped.

상속: IModelCustomizer
파일 보기 프로젝트 열기: lodejard/AllNetCore 1 사용 예제들

공개 메소드들

메소드 설명
Customize ( ModelBuilder modelBuilder, DbContext dbContext ) : void

메소드 상세

Customize() 공개 메소드

public Customize ( ModelBuilder modelBuilder, DbContext dbContext ) : void
modelBuilder ModelBuilder
dbContext DbContext
리턴 void