Lingua

AnnotationCodeGenerator.GenerateDataAnnotation Metodo

Definizione

Overload

Nome Descrizione
GenerateDataAnnotation(IEntityType, IAnnotation)

Restituisce un frammento di codice dell'attributo di annotazione dati per l'oggetto specificato annotationo 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 annotationo null se non esiste alcuna annotazione di dati.

GenerateDataAnnotation(IEntityType, IAnnotation)

Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs

Restituisce un frammento di codice dell'attributo di annotazione dati per l'oggetto specificato annotationo 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

Il IEntityType

annotation
IAnnotation

Il IAnnotation

Valori restituiti

null.

Commenti

L'implementazione predefinita restituisce sempre null.

Si applica a

GenerateDataAnnotation(IProperty, IAnnotation)

Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs
Origine:
AnnotationCodeGenerator.cs

Restituisce un frammento di codice dell'attributo di annotazione dati per l'oggetto specificato annotationo 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

Il IProperty

annotation
IAnnotation

Il IAnnotation

Valori restituiti

null.

Commenti

L'implementazione predefinita restituisce sempre null.

Si applica a