IAnnotationCodeGenerator.GenerateDataAnnotationAttributes Methode

Definition

Überlädt

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Für die angegebenen Anmerkungen mit entsprechenden Datenanmerkungsattributen gibt diese Attributcodefragmente zurück und entfernt die Anmerkungen.

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Für die angegebenen Anmerkungen mit entsprechenden Datenanmerkungsattributen gibt diese Attributcodefragmente zurück und entfernt die Anmerkungen.

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Für die angegebenen Anmerkungen mit entsprechenden Datenanmerkungsattributen gibt diese Attributcodefragmente zurück und entfernt die Anmerkungen.

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Für die angegebenen Anmerkungen mit entsprechenden Datenanmerkungsattributen gibt diese Attributcodefragmente zurück und entfernt die Anmerkungen.

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)

Parameter

annotatable
IAnnotatable

Die Annotatable, auf die die Anmerkungen angewendet werden.

annotations
IDictionary<String,IAnnotation>

Der Satz von Anmerkungen, aus denen fließende API-Aufrufe generiert werden sollen.

Gibt zurück

Gilt für:

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Für die angegebenen Anmerkungen mit entsprechenden Datenanmerkungsattributen gibt diese Attributcodefragmente zurück und entfernt die Anmerkungen.

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)

Parameter

entityType
IEntityType

Der Entitätstyp, auf den die Anmerkungen angewendet werden.

annotations
IDictionary<String,IAnnotation>

Der Satz von Anmerkungen, aus denen fließende API-Aufrufe generiert werden sollen.

Gibt zurück

Gilt für:

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Für die angegebenen Anmerkungen mit entsprechenden Datenanmerkungsattributen gibt diese Attributcodefragmente zurück und entfernt die Anmerkungen.

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)

Parameter

property
IProperty

Die Eigenschaft, auf die die Anmerkungen angewendet werden.

annotations
IDictionary<String,IAnnotation>

Der Satz von Anmerkungen, aus denen fließende API-Aufrufe generiert werden sollen.

Gibt zurück

Gilt für: