DbContextModelAttribute 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 컨텍스트에 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 |
컴파일된 모델을 빌드하는 데 사용되는 데이터베이스 공급자 이름을 가져옵니다. |