Language

AnnotatableBuilder<TMetadata,TModelBuilder> クラス

定義

ConventionAnnotatableを構成するための単純な API サーフェスを持つ基本型。

この型は、通常、データベース プロバイダー (およびその他の拡張機能) によって使用されます。 通常、アプリケーション コードでは使用されません。

[System.Diagnostics.DebuggerDisplay("Builder {Metadata,nq}")]
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class AnnotatableBuilder<TMetadata,TModelBuilder> : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder where TMetadata : ConventionAnnotatable where TModelBuilder : IConventionModelBuilder
[System.Diagnostics.DebuggerDisplay("Builder {Metadata,nq}")]
public abstract class AnnotatableBuilder<TMetadata,TModelBuilder> : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder where TMetadata : ConventionAnnotatable where TModelBuilder : IConventionModelBuilder
[<System.Diagnostics.DebuggerDisplay("Builder {Metadata,nq}")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> ConventionAnnotatable and 'ModelBuilder :> IConventionModelBuilder)> = class
    interface IConventionAnnotatableBuilder
[<System.Diagnostics.DebuggerDisplay("Builder {Metadata,nq}")>]
type AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> ConventionAnnotatable and 'ModelBuilder :> IConventionModelBuilder)> = class
    interface IConventionAnnotatableBuilder
Public MustInherit Class AnnotatableBuilder(Of TMetadata, TModelBuilder)
Implements IConventionAnnotatableBuilder

型パラメーター

TMetadata
TModelBuilder
継承
AnnotatableBuilder<TMetadata,TModelBuilder>
属性
実装

注釈

詳細と例については、 データベース プロバイダーと拡張機能の実装 を参照してください。

コンストラクター

Name 説明
AnnotatableBuilder<TMetadata,TModelBuilder>(TMetadata, TModelBuilder)

の新しいインスタンスを作成します。 AnnotatableBuilder<TMetadata,TModelBuilder>

プロパティ

Name 説明
Metadata

構成されている項目を取得します。

ModelBuilder

モデル ビルダーを取得します。

メソッド

Name 説明
CanRemoveAnnotation(String, ConfigurationSource)

この構成ソースを使用して、指定した名前の注釈を削除できるかどうかを示す値を返します。

CanSetAnnotation(String, Object, ConfigurationSource)

指定した名前と値を持つ注釈をこの構成ソースから設定できるかどうかを示す値を返します。

HasAnnotation(String, Object, ConfigurationSource)

指定された構成ソースを使用して、このオブジェクトの指定されたキーと値を使用して注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

HasNoAnnotation(String, ConfigurationSource)

指定した名前の注釈を削除します。

HasNonNullAnnotation(String, Object, ConfigurationSource)

指定された構成ソースを使用して、このオブジェクトの指定されたキーと値を使用して注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。 null値が指定されている場合、注釈を削除します。

MergeAnnotationsFrom(TMetadata, ConfigurationSource)

指定されたオブジェクトから構成されたすべての注釈をコピーし、既存の注釈を上書きします。

MergeAnnotationsFrom(TMetadata)

指定されたオブジェクトから明示的に構成されたすべての注釈をコピーし、既存の注釈を上書きします。

RemoveAnnotation(String, ConfigurationSource)
古い.

指定した名前の注釈を削除します。

明示的なインターフェイスの実装

Name 説明
IConventionAnnotatableBuilder.CanRemoveAnnotation(String, Boolean)

この構成ソースを使用して、指定した名前の注釈を削除できるかどうかを示す値を返します。

IConventionAnnotatableBuilder.CanSetAnnotation(String, Object, Boolean)

指定した名前と値を持つ注釈をこの構成ソースから設定できるかどうかを示す値を返します。

IConventionAnnotatableBuilder.HasAnnotation(String, Object, Boolean)

指定した名前の下に格納されている注釈を設定します。 指定した名前の注釈が既に同じまたは下位の ConfigurationSourceで存在する場合は、既存の注釈を上書きします。

IConventionAnnotatableBuilder.HasNoAnnotation(String, Boolean)

指定した名前の注釈をこのオブジェクトから削除します。

IConventionAnnotatableBuilder.HasNonNullAnnotation(String, Object, Boolean)

指定した名前の下に格納されている注釈を設定します。 指定した名前の注釈が既に同じまたは下位の ConfigurationSourceで存在する場合は、既存の注釈を上書きします。 null値が指定されている場合、注釈を削除します。

IConventionAnnotatableBuilder.Metadata

構成されている注釈付き項目を取得します。

IConventionAnnotatableBuilder.ModelBuilder

モデル ビルダーを取得します。

適用対象