ContextConfiguration 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용자 지정을 허용하기 위해 데이터 컨텍스트 인스턴스에 대한 정보를 제공합니다.
public ref class ContextConfiguration
public class ContextConfiguration
type ContextConfiguration = class
Public Class ContextConfiguration
- 상속
-
ContextConfiguration
예제
다음 예제에서는 스캐폴딩을 사용하도록 설정된 데이터 컨텍스트를 등록하기 위해 메서드를 호출 ContextConfiguration 할 때 클래스를 사용하는 RegisterContext 방법을 보여 줍니다.
MetaModel model = new MetaModel();
model.RegisterContext(typeof(AdventureWorksLTDataContext),
new ContextConfiguration() { ScaffoldAllTables = true });
Dim model As New MetaModel
model.RegisterContext(GetType(AdventureWorksLTDataContext), _
New ContextConfiguration() With {.ScaffoldAllTables = True})
설명
클래스 ContextConfiguration 를 사용하면 데이터 액세스를 사용자 지정할 수 있습니다. 예를 들어 이 클래스를 사용하여 웹 애플리케이션에 대한 스캐폴딩을 사용하도록 설정하거나 사용자 지정 메타데이터 공급자를 정의할 수 있습니다.
생성자
| Name | Description |
|---|---|
| ContextConfiguration() |
ContextConfiguration 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| MetadataProviderFactory |
메타데이터 공급자를 가져오거나 설정합니다. |
| ScaffoldAllTables |
스캐폴딩을 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. |
메서드
| Name | Description |
|---|---|
| Equals(Object) |
지정된 개체가 현재 개체와 같은지 여부를 확인합니다. (다음에서 상속됨 Object) |
| GetHashCode() |
기본 해시 함수로 사용됩니다. (다음에서 상속됨 Object) |
| GetType() |
현재 인스턴스의 Type 가져옵니다. (다음에서 상속됨 Object) |
| MemberwiseClone() |
현재 Object단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
| ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |