Aracılığıyla paylaş


AnnotationCodeGenerator.GenerateDataAnnotation Yöntem

Tanım

Aşırı Yüklemeler

GenerateDataAnnotation(IEntityType, IAnnotation)

Verilen annotationiçin bir veri ek açıklaması öznitelik kodu parçası döndürür veya null bunun için veri ek açıklaması yoksa.

GenerateDataAnnotation(IProperty, IAnnotation)

Verilen annotationiçin bir veri ek açıklaması öznitelik kodu parçası döndürür veya null bunun için veri ek açıklaması yoksa.

GenerateDataAnnotation(IEntityType, IAnnotation)

Kaynak:
AnnotationCodeGenerator.cs
Kaynak:
AnnotationCodeGenerator.cs
Kaynak:
AnnotationCodeGenerator.cs
Kaynak:
AnnotationCodeGenerator.cs
Kaynak:
AnnotationCodeGenerator.cs

Verilen annotationiçin bir veri ek açıklaması öznitelik kodu parçası döndürür veya null bunun için veri ek açıklaması yoksa.

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

Parametreler

entityType
IEntityType

IEntityType.

annotation
IAnnotation

IAnnotation.

Döndürülenler

null.

Açıklamalar

Varsayılan uygulama her zaman döndürür null.

Şunlara uygulanır

GenerateDataAnnotation(IProperty, IAnnotation)

Kaynak:
AnnotationCodeGenerator.cs
Kaynak:
AnnotationCodeGenerator.cs
Kaynak:
AnnotationCodeGenerator.cs
Kaynak:
AnnotationCodeGenerator.cs
Kaynak:
AnnotationCodeGenerator.cs

Verilen annotationiçin bir veri ek açıklaması öznitelik kodu parçası döndürür veya null bunun için veri ek açıklaması yoksa.

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

Parametreler

property
IProperty

IProperty.

annotation
IAnnotation

IAnnotation.

Döndürülenler

null.

Açıklamalar

Varsayılan uygulama her zaman döndürür null.

Şunlara uygulanır