다음을 통해 공유


AttributeToTableAnnotationConvention<TAttribute,TAnnotation> 클래스

정의

.NET 형식에서 특성을 읽고 해당 특성에 따라 테이블 주석을 생성하는 Code First 규칙에 대한 범용 클래스입니다.

public class AttributeToTableAnnotationConvention<TAttribute,TAnnotation> : System.Data.Entity.ModelConfiguration.Conventions.Convention where TAttribute : Attribute
type AttributeToTableAnnotationConvention<'Attribute, 'Annotation (requires 'Attribute :> Attribute)> = class
    inherit Convention
Public Class AttributeToTableAnnotationConvention(Of TAttribute, TAnnotation)
Inherits Convention

형식 매개 변수

TAttribute

검색할 특성의 형식입니다.

TAnnotation

만들 주석의 형식입니다.

상속
AttributeToTableAnnotationConvention<TAttribute,TAnnotation>

생성자

AttributeToTableAnnotationConvention<TAttribute,TAnnotation>(String, Func<Type,IList<TAttribute>,TAnnotation>)

지정된 이름을 사용하여 지정된 팩터리 대리자를 사용하여 테이블 주석을 만드는 규칙을 생성합니다.

메서드

Properties()

모델의 모든 속성에 적용되는 간단한 규칙의 구성을 시작합니다.

(다음에서 상속됨 Convention)
Properties<T>()

모델에서 지정된 형식의 모든 기본 속성에 적용되는 간단한 규칙의 구성을 시작합니다.

(다음에서 상속됨 Convention)
Types()

모델의 모든 매핑된 형식에 적용되는 간단한 규칙의 구성을 시작합니다.

(다음에서 상속됨 Convention)
Types<T>()

모델에서 파생되거나 지정된 형식을 구현하는 모든 매핑된 형식에 적용되는 간단한 규칙의 구성을 시작합니다.

(다음에서 상속됨 Convention)

적용 대상