다음을 통해 공유


AnnotationCodeGenerator.GenerateDataAnnotation 메서드

정의

오버로드

GenerateDataAnnotation(IEntityType, IAnnotation)

지정된 annotation에 대한 데이터 주석 특성 코드 조각을 반환하거나 null 데이터 주석이 없는 경우 반환합니다.

GenerateDataAnnotation(IProperty, IAnnotation)

지정된 annotation에 대한 데이터 주석 특성 코드 조각을 반환하거나 null 데이터 주석이 없는 경우 반환합니다.

GenerateDataAnnotation(IEntityType, IAnnotation)

지정된 annotation에 대한 데이터 주석 특성 코드 조각을 반환하거나 null 데이터 주석이 없는 경우 반환합니다.

protected virtual Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment GenerateDataAnnotation (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment? GenerateDataAnnotation (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateDataAnnotation : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment
override this.GenerateDataAnnotation : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment
Protected Overridable Function GenerateDataAnnotation (entityType As IEntityType, annotation As IAnnotation) As AttributeCodeFragment

매개 변수

반환

null.

설명

기본 구현에서는 항상 null을 반환합니다.

적용 대상

GenerateDataAnnotation(IProperty, IAnnotation)

지정된 annotation에 대한 데이터 주석 특성 코드 조각을 반환하거나 null 데이터 주석이 없는 경우 반환합니다.

protected virtual Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment GenerateDataAnnotation (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment? GenerateDataAnnotation (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateDataAnnotation : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment
override this.GenerateDataAnnotation : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment
Protected Overridable Function GenerateDataAnnotation (property As IProperty, annotation As IAnnotation) As AttributeCodeFragment

매개 변수

property
IProperty

IProperty

반환

null.

설명

기본 구현에서는 항상 null을 반환합니다.

적용 대상