언어

DbContextModelAttribute 클래스

정의

지정된 컨텍스트에 RuntimeModel 사용해야 하는 구현을 식별합니다.

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class DbContextModelAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type DbContextModelAttribute = class
    inherit Attribute
Public NotInheritable Class DbContextModelAttribute
Inherits Attribute
상속
DbContextModelAttribute
특성

설명

이 특성은 일반적으로 컴파일된 모델을 사용하여 생성되며 코드에 지정할 필요가 없습니다.

자세한 내용 및 예제는 DbContext 풀링 사용을 참조하세요.

생성자

속성 Description
DbContextModelAttribute(Type, Type)

DbContextAttribute 클래스의 새 인스턴스를 초기화합니다.

속성

속성 Description
ContextType

연결된 컨텍스트를 가져옵니다.

ModelType

컴파일된 모델을 가져옵니다.

ProviderName

컴파일된 모델을 빌드하는 데 사용되는 데이터베이스 공급자 이름을 가져옵니다.

적용 대상