Udostępnij za pośrednictwem


AnnotationCodeGenerator.GenerateDataAnnotation Metoda

Definicja

Przeciążenia

GenerateDataAnnotation(IEntityType, IAnnotation)

Zwraca fragment kodu atrybutu adnotacji danych dla danego annotationelementu lub null jeśli nie istnieje dla niego adnotacja danych.

GenerateDataAnnotation(IProperty, IAnnotation)

Zwraca fragment kodu atrybutu adnotacji danych dla danego annotationelementu lub null jeśli nie istnieje dla niego adnotacja danych.

GenerateDataAnnotation(IEntityType, IAnnotation)

Zwraca fragment kodu atrybutu adnotacji danych dla danego annotationelementu lub null jeśli nie istnieje dla niego adnotacja danych.

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

Parametry

entityType
IEntityType

Element IEntityType.

annotation
IAnnotation

Element IAnnotation.

Zwraca

null.

Uwagi

Domyślna implementacja zawsze zwraca wartość null.

Dotyczy

GenerateDataAnnotation(IProperty, IAnnotation)

Zwraca fragment kodu atrybutu adnotacji danych dla danego annotationelementu lub null jeśli nie istnieje dla niego adnotacja danych.

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

Parametry

property
IProperty

Element IProperty.

annotation
IAnnotation

Element IAnnotation.

Zwraca

null.

Uwagi

Domyślna implementacja zawsze zwraca wartość null.

Dotyczy