Sprache

AnnotationCodeGenerator.GenerateDataAnnotation Methode

Definition

Überlädt

Name Beschreibung
GenerateDataAnnotation(IEntityType, IAnnotation)

Gibt ein Codefragment für das Datenanmerkungsattribut für das angegebene annotationAttribut zurück, oder null wenn keine Datenanmerkung dafür vorhanden ist.

GenerateDataAnnotation(IProperty, IAnnotation)

Gibt ein Codefragment für das Datenanmerkungsattribut für das angegebene annotationAttribut zurück, oder null wenn keine Datenanmerkung dafür vorhanden ist.

GenerateDataAnnotation(IEntityType, IAnnotation)

Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs

Gibt ein Codefragment für das Datenanmerkungsattribut für das angegebene annotationAttribut zurück, oder null wenn keine Datenanmerkung dafür vorhanden ist.

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

Parameter

entityType
IEntityType

Die IEntityType.

annotation
IAnnotation

Die IAnnotation.

Gibt zurück

null.

Hinweise

Die Standardimplementierung gibt immer zurück null.

Gilt für:

GenerateDataAnnotation(IProperty, IAnnotation)

Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs
Quelle:
AnnotationCodeGenerator.cs

Gibt ein Codefragment für das Datenanmerkungsattribut für das angegebene annotationAttribut zurück, oder null wenn keine Datenanmerkung dafür vorhanden ist.

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

Parameter

property
IProperty

Die IProperty.

annotation
IAnnotation

Die IAnnotation.

Gibt zurück

null.

Hinweise

Die Standardimplementierung gibt immer zurück null.

Gilt für: