다음을 통해 공유


ModelBuilder.ApplyConfiguration 메서드

정의

오버로드

ApplyConfiguration<TEntity>(IEntityTypeConfiguration<TEntity>)

instance 정의된 구성을 IEntityTypeConfiguration<TEntity> 적용합니다.

ApplyConfiguration<TQuery>(IQueryTypeConfiguration<TQuery>)
사용되지 않음.

instance 정의된 구성을 IQueryTypeConfiguration<TQuery> 적용합니다.

ApplyConfiguration<TEntity>(IEntityTypeConfiguration<TEntity>)

Source:
ModelBuilder.cs
Source:
ModelBuilder.cs
Source:
ModelBuilder.cs
Source:
ModelBuilder.cs
Source:
ModelBuilder.cs
Source:
ModelBuilder.cs
Source:
ModelBuilder.cs
Source:
ModelBuilder.cs
Source:
ModelBuilder.cs

instance 정의된 구성을 IEntityTypeConfiguration<TEntity> 적용합니다.

public virtual Microsoft.EntityFrameworkCore.ModelBuilder ApplyConfiguration<TEntity> (Microsoft.EntityFrameworkCore.IEntityTypeConfiguration<TEntity> configuration) where TEntity : class;
abstract member ApplyConfiguration : Microsoft.EntityFrameworkCore.IEntityTypeConfiguration<'Entity (requires 'Entity : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Entity : null)
override this.ApplyConfiguration : Microsoft.EntityFrameworkCore.IEntityTypeConfiguration<'Entity (requires 'Entity : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Entity : null)
Public Overridable Function ApplyConfiguration(Of TEntity As Class) (configuration As IEntityTypeConfiguration(Of TEntity)) As ModelBuilder

형식 매개 변수

TEntity

구성할 엔터티 형식입니다.

매개 변수

configuration
IEntityTypeConfiguration<TEntity>

적용할 구성입니다.

반환

추가 구성 호출을 연결할 수 있도록 동일한 ModelBuilder instance.

설명

자세한 내용 과 예제는 엔터티 형식 및 관계 모델링 을 참조하세요.

적용 대상

ApplyConfiguration<TQuery>(IQueryTypeConfiguration<TQuery>)

Source:
ModelBuilder.cs
Source:
ModelBuilder.cs
Source:
ModelBuilder.cs
Source:
ModelBuilder.cs

주의

Use IEntityTypeConfiguration<TEntity> instead

instance 정의된 구성을 IQueryTypeConfiguration<TQuery> 적용합니다.

public virtual Microsoft.EntityFrameworkCore.ModelBuilder ApplyConfiguration<TQuery> (Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<TQuery> configuration) where TQuery : class;
[System.Obsolete("Use IEntityTypeConfiguration<TEntity> instead")]
public virtual Microsoft.EntityFrameworkCore.ModelBuilder ApplyConfiguration<TQuery> (Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<TQuery> configuration) where TQuery : class;
abstract member ApplyConfiguration : Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<'Query (requires 'Query : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Query : null)
override this.ApplyConfiguration : Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<'Query (requires 'Query : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Query : null)
[<System.Obsolete("Use IEntityTypeConfiguration<TEntity> instead")>]
abstract member ApplyConfiguration : Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<'Query (requires 'Query : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Query : null)
override this.ApplyConfiguration : Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<'Query (requires 'Query : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Query : null)
Public Overridable Function ApplyConfiguration(Of TQuery As Class) (configuration As IQueryTypeConfiguration(Of TQuery)) As ModelBuilder

형식 매개 변수

TQuery

구성할 쿼리 형식입니다.

매개 변수

configuration
IQueryTypeConfiguration<TQuery>

적용할 구성입니다.

반환

추가 구성 호출을 연결할 수 있도록 동일한 ModelBuilder instance.

특성

적용 대상