DbContextAttribute 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
클래스가 DbContext 속한 것을 식별합니다. 예를 들어 이 특성은 마이그레이션이 적용되는 컨텍스트를 식별하는 데 사용됩니다. 디자인 타임 도구에 대한 어셈블리에 사용되는 컨텍스트를 나타내는 데도 사용됩니다.
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class DbContextAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class DbContextAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class DbContextAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type DbContextAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type DbContextAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type DbContextAttribute = class
inherit Attribute
Public NotInheritable Class DbContextAttribute
Inherits Attribute
- 상속
-
DbContextAttribute
- 특성
설명
자세한 내용 및 예제는 EF Core를 사용하여 데이터베이스 스키마 관리를 참조하세요.
생성자
| 속성 | Description |
|---|---|
| DbContextAttribute(Type) |
DbContextAttribute 클래스의 새 인스턴스를 초기화합니다. |
속성
| 속성 | Description |
|---|---|
| ContextType |
연결된 컨텍스트를 가져옵니다. |