Bagikan melalui


AnnotationCodeGenerator.GenerateDataAnnotation Metode

Definisi

Overload

GenerateDataAnnotation(IEntityType, IAnnotation)

Mengembalikan fragmen kode atribut anotasi data untuk annotation, atau null jika tidak ada anotasi data untuknya.

GenerateDataAnnotation(IProperty, IAnnotation)

Mengembalikan fragmen kode atribut anotasi data untuk annotation, atau null jika tidak ada anotasi data untuknya.

GenerateDataAnnotation(IEntityType, IAnnotation)

Mengembalikan fragmen kode atribut anotasi data untuk annotation, atau null jika tidak ada anotasi data untuknya.

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

Parameter

entityType
IEntityType

IEntityType.

annotation
IAnnotation

IAnnotation.

Mengembalikan

null.

Keterangan

Implementasi default selalu mengembalikan null.

Berlaku untuk

GenerateDataAnnotation(IProperty, IAnnotation)

Mengembalikan fragmen kode atribut anotasi data untuk annotation, atau null jika tidak ada anotasi data untuknya.

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

Parameter

property
IProperty

IProperty.

annotation
IAnnotation

IAnnotation.

Mengembalikan

null.

Keterangan

Implementasi default selalu mengembalikan null.

Berlaku untuk