Jazyk

AnnotationCodeGenerator.GenerateDataAnnotation Metoda

Definice

Přetížení

Název Description
GenerateDataAnnotation(IEntityType, IAnnotation)

Vrátí fragment kódu atributu datové poznámky pro danou annotationhodnotu nebo null pokud pro ni neexistuje žádná datová poznámka.

GenerateDataAnnotation(IProperty, IAnnotation)

Vrátí fragment kódu atributu datové poznámky pro danou annotationhodnotu nebo null pokud pro ni neexistuje žádná datová poznámka.

GenerateDataAnnotation(IEntityType, IAnnotation)

Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs

Vrátí fragment kódu atributu datové poznámky pro danou annotationhodnotu nebo null pokud pro ni neexistuje žádná datová poznámka.

protected virtual Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment? GenerateDataAnnotation(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment GenerateDataAnnotation(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateDataAnnotation : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment
override this.GenerateDataAnnotation : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment
Protected Overridable Function GenerateDataAnnotation (entityType As IEntityType, annotation As IAnnotation) As AttributeCodeFragment

Parametry

entityType
IEntityType

IEntityType.

annotation
IAnnotation

IAnnotation.

Návraty

null.

Poznámky

Výchozí implementace vždy vrátí null.

Platí pro

GenerateDataAnnotation(IProperty, IAnnotation)

Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs
Zdroj:
AnnotationCodeGenerator.cs

Vrátí fragment kódu atributu datové poznámky pro danou annotationhodnotu nebo null pokud pro ni neexistuje žádná datová poznámka.

protected virtual Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment? GenerateDataAnnotation(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment GenerateDataAnnotation(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateDataAnnotation : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment
override this.GenerateDataAnnotation : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment
Protected Overridable Function GenerateDataAnnotation (property As IProperty, annotation As IAnnotation) As AttributeCodeFragment

Parametry

property
IProperty

IProperty.

annotation
IAnnotation

IAnnotation.

Návraty

null.

Poznámky

Výchozí implementace vždy vrátí null.

Platí pro