Condividi tramite


AnnotationCodeGenerator.GenerateDataAnnotationAttributes Metodo

Definizione

Overload

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Per le annotazioni specificate con attributi di annotazione dati corrispondenti, restituisce tali frammenti di codice di attributo e rimuove le annotazioni.

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Per le annotazioni specificate con attributi di annotazione dati corrispondenti, restituisce tali frammenti di codice di attributo e rimuove le annotazioni.

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Per le annotazioni specificate con attributi di annotazione dati corrispondenti, restituisce tali frammenti di codice di attributo e rimuove le annotazioni.

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Per le annotazioni specificate con attributi di annotazione dati corrispondenti, restituisce tali frammenti di codice di attributo e rimuove le annotazioni.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (annotatable As IAnnotatable, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)

Parametri

annotatable
IAnnotatable

Annotabile a cui vengono applicate le annotazioni.

annotations
IDictionary<String,IAnnotation>

Set di annotazioni da cui generare chiamate API Fluent.

Restituisce

Implementazioni

Si applica a

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Per le annotazioni specificate con attributi di annotazione dati corrispondenti, restituisce tali frammenti di codice di attributo e rimuove le annotazioni.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (entityType As IEntityType, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)

Parametri

entityType
IEntityType

Tipo di entità a cui vengono applicate le annotazioni.

annotations
IDictionary<String,IAnnotation>

Set di annotazioni da cui generare chiamate API Fluent.

Restituisce

Implementazioni

Si applica a

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Per le annotazioni specificate con attributi di annotazione dati corrispondenti, restituisce tali frammenti di codice di attributo e rimuove le annotazioni.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Metadata.IProperty property, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (property As IProperty, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)

Parametri

property
IProperty

Proprietà a cui vengono applicate le annotazioni.

annotations
IDictionary<String,IAnnotation>

Set di annotazioni da cui generare chiamate API Fluent.

Restituisce

Implementazioni

Si applica a