Condividi tramite


AnnotationCodeGenerator.GenerateDataAnnotation Metodo

Definizione

Overload

GenerateDataAnnotation(IEntityType, IAnnotation)

Restituisce un frammento di codice dell'attributo di annotazione dati per l'oggetto specificato annotationoppure null se non esiste alcuna annotazione di dati.

GenerateDataAnnotation(IProperty, IAnnotation)

Restituisce un frammento di codice dell'attributo di annotazione dati per l'oggetto specificato annotationoppure null se non esiste alcuna annotazione di dati.

GenerateDataAnnotation(IEntityType, IAnnotation)

Restituisce un frammento di codice dell'attributo di annotazione dati per l'oggetto specificato annotationoppure null se non esiste alcuna annotazione di dati.

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

Parametri

entityType
IEntityType

Oggetto IEntityType.

annotation
IAnnotation

Oggetto IAnnotation.

Restituisce

null.

Commenti

L'implementazione predefinita restituisce sempre null.

Si applica a

GenerateDataAnnotation(IProperty, IAnnotation)

Restituisce un frammento di codice dell'attributo di annotazione dati per l'oggetto specificato annotationoppure null se non esiste alcuna annotazione di dati.

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

Parametri

property
IProperty

Oggetto IProperty.

annotation
IAnnotation

Oggetto IAnnotation.

Restituisce

null.

Commenti

L'implementazione predefinita restituisce sempre null.

Si applica a