다음을 통해 공유


AttributeToColumnAnnotationConvention<TAttribute,TAnnotation> 클래스

정의

.NET 속성에서 특성을 읽고 해당 특성에 따라 열 주석을 생성하는 Code First 규칙의 범용 클래스입니다.

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

형식 매개 변수

TAttribute

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

TAnnotation

만들 주석의 형식입니다.

상속
AttributeToColumnAnnotationConvention<TAttribute,TAnnotation>
파생

생성자

AttributeToColumnAnnotationConvention<TAttribute,TAnnotation>(String, Func<PropertyInfo,IList<TAttribute>,TAnnotation>)

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

메서드

Properties()

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

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

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

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

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

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

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

(다음에서 상속됨 Convention)

적용 대상