Udostępnij za pośrednictwem


AnnotationCodeGenerator.GenerateDataAnnotationAttributes Metoda

Definicja

Przeciążenia

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Dla danych adnotacji, które mają odpowiednie atrybuty adnotacji danych, zwraca te fragmenty kodu atrybutu i usuwa adnotacje.

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Dla danych adnotacji, które mają odpowiednie atrybuty adnotacji danych, zwraca te fragmenty kodu atrybutu i usuwa adnotacje.

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Dla danych adnotacji, które mają odpowiednie atrybuty adnotacji danych, zwraca te fragmenty kodu atrybutu i usuwa adnotacje.

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Dla danych adnotacji, które mają odpowiednie atrybuty adnotacji danych, zwraca te fragmenty kodu atrybutu i usuwa adnotacje.

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)

Parametry

annotatable
IAnnotatable

Tabele adnotacji, do których są stosowane adnotacje.

annotations
IDictionary<String,IAnnotation>

Zestaw adnotacji, z których mają być generowane płynne wywołania interfejsu API.

Zwraca

Implementuje

Dotyczy

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Dla danych adnotacji, które mają odpowiednie atrybuty adnotacji danych, zwraca te fragmenty kodu atrybutu i usuwa adnotacje.

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)

Parametry

entityType
IEntityType

Typ jednostki, do której są stosowane adnotacje.

annotations
IDictionary<String,IAnnotation>

Zestaw adnotacji, z których mają być generowane płynne wywołania interfejsu API.

Zwraca

Implementuje

Dotyczy

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Dla danych adnotacji, które mają odpowiednie atrybuty adnotacji danych, zwraca te fragmenty kodu atrybutu i usuwa adnotacje.

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)

Parametry

property
IProperty

Właściwość, do której są stosowane adnotacje.

annotations
IDictionary<String,IAnnotation>

Zestaw adnotacji, z których mają być generowane płynne wywołania interfejsu API.

Zwraca

Implementuje

Dotyczy