次の方法で共有


AnnotationCodeGenerator.GenerateDataAnnotationAttributes メソッド

定義

オーバーロード

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

対応するデータ注釈属性を持つ特定の注釈の場合、それらの属性コード フラグメントを返し、注釈を削除します。

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

対応するデータ注釈属性を持つ特定の注釈の場合、それらの属性コード フラグメントを返し、注釈を削除します。

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

対応するデータ注釈属性を持つ特定の注釈の場合、それらの属性コード フラグメントを返し、注釈を削除します。

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

対応するデータ注釈属性を持つ特定の注釈の場合、それらの属性コード フラグメントを返し、注釈を削除します。

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)

パラメーター

annotatable
IAnnotatable

注釈が適用される注釈可能な 。

annotations
IDictionary<String,IAnnotation>

fluent API 呼び出しの生成元となる注釈のセット。

戻り値

実装

適用対象

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

対応するデータ注釈属性を持つ特定の注釈の場合、それらの属性コード フラグメントを返し、注釈を削除します。

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)

パラメーター

entityType
IEntityType

注釈が適用されるエンティティ型。

annotations
IDictionary<String,IAnnotation>

fluent API 呼び出しの生成元となる注釈のセット。

戻り値

実装

適用対象

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

対応するデータ注釈属性を持つ特定の注釈の場合、それらの属性コード フラグメントを返し、注釈を削除します。

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)

パラメーター

property
IProperty

注釈が適用されるプロパティ。

annotations
IDictionary<String,IAnnotation>

fluent API 呼び出しの生成元となる注釈のセット。

戻り値

実装

適用対象