Partager via


AnnotationCodeGenerator.GenerateDataAnnotation Méthode

Définition

Surcharges

GenerateDataAnnotation(IEntityType, IAnnotation)

Retourne un fragment de code d’attribut d’annotation de données pour le donné annotation, ou null si aucune annotation de données n’existe pour celui-ci.

GenerateDataAnnotation(IProperty, IAnnotation)

Retourne un fragment de code d’attribut d’annotation de données pour le donné annotation, ou null si aucune annotation de données n’existe pour celui-ci.

GenerateDataAnnotation(IEntityType, IAnnotation)

Retourne un fragment de code d’attribut d’annotation de données pour le donné annotation, ou null si aucune annotation de données n’existe pour celui-ci.

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

Paramètres

entityType
IEntityType

L’IEntityTypeopérateur

annotation
IAnnotation

L’IAnnotationopérateur

Retours

null.

Remarques

L'implémentation par défaut retourne toujours null.

S’applique à

GenerateDataAnnotation(IProperty, IAnnotation)

Retourne un fragment de code d’attribut d’annotation de données pour le donné annotation, ou null si aucune annotation de données n’existe pour celui-ci.

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

Paramètres

property
IProperty

L’IPropertyopérateur

annotation
IAnnotation

L’IAnnotationopérateur

Retours

null.

Remarques

L'implémentation par défaut retourne toujours null.

S’applique à