AnnotationCodeGenerator.GenerateDataAnnotationAttributes Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| Název | Description |
|---|---|
| GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>) |
Pro dané poznámky, které mají odpovídající atributy datových poznámek, vrátí tyto fragmenty kódu atributu a odebere poznámky. |
| GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>) |
Pro dané poznámky, které mají odpovídající atributy datových poznámek, vrátí tyto fragmenty kódu atributu a odebere poznámky. |
| GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>) |
Pro dané poznámky, které mají odpovídající atributy datových poznámek, vrátí tyto fragmenty kódu atributu a odebere poznámky. |
GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)
Pro dané poznámky, které mají odpovídající atributy datových poznámek, vrátí tyto fragmenty kódu atributu a odebere poznámky.
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
Poznámkami, na které jsou poznámky použity.
- annotations
- IDictionary<String,IAnnotation>
Sada poznámek, ze kterých se generují fluentní volání rozhraní API.
Návraty
Implementuje
Platí pro
GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)
Pro dané poznámky, které mají odpovídající atributy datových poznámek, vrátí tyto fragmenty kódu atributu a odebere poznámky.
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 entity, na který jsou použity poznámky.
- annotations
- IDictionary<String,IAnnotation>
Sada poznámek, ze kterých se generují fluentní volání rozhraní API.
Návraty
Implementuje
Platí pro
GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)
Pro dané poznámky, které mají odpovídající atributy datových poznámek, vrátí tyto fragmenty kódu atributu a odebere poznámky.
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
Vlastnost, na kterou jsou poznámky použity.
- annotations
- IDictionary<String,IAnnotation>
Sada poznámek, ze kterých se generují fluentní volání rozhraní API.