Share via


IAnnotationCodeGenerator.GenerateDataAnnotationAttributes Método

Definição

Sobrecargas

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Para as anotações fornecidas que têm atributos de anotação de dados correspondentes, retorna esses fragmentos de código de atributo e remove as anotações.

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Para as anotações fornecidas que têm atributos de anotação de dados correspondentes, retorna esses fragmentos de código de atributo e remove as anotações.

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Para as anotações fornecidas que têm atributos de anotação de dados correspondentes, retorna esses fragmentos de código de atributo e remove as anotações.

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Para as anotações fornecidas que têm atributos de anotação de dados correspondentes, retorna esses fragmentos de código de atributo e remove as anotações.

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)

Parâmetros

annotatable
IAnnotatable

O annotatable ao qual as anotações são aplicadas.

annotations
IDictionary<String,IAnnotation>

O conjunto de anotações do qual gerar chamadas à API fluentes.

Retornos

Aplica-se a

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Para as anotações fornecidas que têm atributos de anotação de dados correspondentes, retorna esses fragmentos de código de atributo e remove as anotações.

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)

Parâmetros

entityType
IEntityType

O tipo de entidade ao qual as anotações são aplicadas.

annotations
IDictionary<String,IAnnotation>

O conjunto de anotações do qual gerar chamadas à API fluentes.

Retornos

Aplica-se a

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Para as anotações fornecidas que têm atributos de anotação de dados correspondentes, retorna esses fragmentos de código de atributo e remove as anotações.

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)

Parâmetros

property
IProperty

A propriedade à qual as anotações são aplicadas.

annotations
IDictionary<String,IAnnotation>

O conjunto de anotações do qual gerar chamadas à API fluentes.

Retornos

Aplica-se a