次の方法で共有


AnnotationCodeGenerator.GenerateDataAnnotation メソッド

定義

オーバーロード

GenerateDataAnnotation(IEntityType, IAnnotation)

指定 annotationされた のデータ注釈属性コード フラグメントを返します。データ null 注釈が存在しない場合は返します。

GenerateDataAnnotation(IProperty, IAnnotation)

指定 annotationされた のデータ注釈属性コード フラグメントを返します。データ null 注釈が存在しない場合は返します。

GenerateDataAnnotation(IEntityType, IAnnotation)

指定 annotationされた のデータ注釈属性コード フラグメントを返します。データ null 注釈が存在しない場合は返します。

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

パラメーター

entityType
IEntityType

IEntityType

annotation
IAnnotation

IAnnotation

戻り値

null.

注釈

既定の実装では、常に null を返します。

適用対象

GenerateDataAnnotation(IProperty, IAnnotation)

指定 annotationされた のデータ注釈属性コード フラグメントを返します。データ null 注釈が存在しない場合は返します。

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

パラメーター

property
IProperty

IProperty

annotation
IAnnotation

IAnnotation

戻り値

null.

注釈

既定の実装では、常に null を返します。

適用対象