다음을 통해 공유


IndexAnnotationSerializer 클래스

정의

이 클래스는 개체를 Entity Framework 모델의 EDMX 형식으로 저장할 수 있도록 직렬화 및 역직렬화하는 IndexAnnotation 데 사용됩니다.

public class IndexAnnotationSerializer : System.Data.Entity.Infrastructure.IMetadataAnnotationSerializer
type IndexAnnotationSerializer = class
    interface IMetadataAnnotationSerializer
Public Class IndexAnnotationSerializer
Implements IMetadataAnnotationSerializer
상속
IndexAnnotationSerializer
구현

설명

직렬화된 형식의 예는 { Name: 'MyIndex', Order: 7, IsClustered: True, IsUnique: False } { } { Name: 'MyOtherIndex' }입니다. 인덱스 특성에서 명시적으로 설정되지 않은 속성은 직렬화된 출력에서 제외됩니다. 따라서 위의 예제에서 첫 번째 인덱스는 모든 속성을 지정하고, 두 번째 인덱스는 없음을, 세 번째 인덱스는 이름 집합만 갖습니다.

생성자

IndexAnnotationSerializer()

이 클래스는 개체를 Entity Framework 모델의 EDMX 형식으로 저장할 수 있도록 직렬화 및 역직렬화하는 IndexAnnotation 데 사용됩니다.

메서드

Deserialize(String, String)

지정된 문자열을 개체로 IndexAnnotation 다시 역직렬화합니다.

Serialize(String, Object)

지정된 IndexAnnotation 를 EDMX XML의 스토리지에 대한 문자열로 직렬화합니다.

적용 대상