다음을 통해 공유


AnnotationCodeGenerator.GenerateDataAnnotationAttributes 메서드

정의

오버로드

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

해당 데이터 주석 특성이 있는 지정된 주석의 경우 는 해당 특성 코드 조각을 반환하고 주석을 제거합니다.

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

해당 데이터 주석 특성이 있는 지정된 주석의 경우 는 해당 특성 코드 조각을 반환하고 주석을 제거합니다.

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

해당 데이터 주석 특성이 있는 지정된 주석의 경우 는 해당 특성 코드 조각을 반환하고 주석을 제거합니다.

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

해당 데이터 주석 특성이 있는 지정된 주석의 경우 는 해당 특성 코드 조각을 반환하고 주석을 제거합니다.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (annotatable As IAnnotatable, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)

매개 변수

annotatable
IAnnotatable

주석이 적용되는 주석입니다.

annotations
IDictionary<String,IAnnotation>

흐름 API 호출을 생성할 주석 집합입니다.

반환

구현

적용 대상

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

해당 데이터 주석 특성이 있는 지정된 주석의 경우 는 해당 특성 코드 조각을 반환하고 주석을 제거합니다.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (entityType As IEntityType, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)

매개 변수

entityType
IEntityType

주석이 적용되는 엔터티 형식입니다.

annotations
IDictionary<String,IAnnotation>

흐름 API 호출을 생성할 주석 집합입니다.

반환

구현

적용 대상

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

해당 데이터 주석 특성이 있는 지정된 주석의 경우 는 해당 특성 코드 조각을 반환하고 주석을 제거합니다.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Metadata.IProperty property, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (property As IProperty, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)

매개 변수

property
IProperty

주석이 적용되는 속성입니다.

annotations
IDictionary<String,IAnnotation>

흐름 API 호출을 생성할 주석 집합입니다.

반환

구현

적용 대상