IConventionCheckConstraint インターフェイス

定義

エンティティ型のチェック制約を表します。

public interface IConventionCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint
public interface IConventionCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable
public interface IConventionCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint
type IConventionCheckConstraint = interface
    interface ICheckConstraint
type IConventionCheckConstraint = interface
    interface ICheckConstraint
    interface IAnnotatable
    interface IConventionAnnotatable
type IConventionCheckConstraint = interface
    interface IReadOnlyCheckConstraint
    interface IReadOnlyAnnotatable
    interface IConventionAnnotatable
Public Interface IConventionCheckConstraint
Implements ICheckConstraint
Public Interface IConventionCheckConstraint
Implements ICheckConstraint, IConventionAnnotatable
Public Interface IConventionCheckConstraint
Implements IConventionAnnotatable, IReadOnlyCheckConstraint
実装

注釈

詳細と例については、「データベースチェック制約」を参照してください。

プロパティ

Builder

このチェック制約の構成に使用できるビルダーを取得します。

EntityType

このチェック制約が定義されているエンティティ型を取得します。

IsInModel

このオブジェクトがモデル内にあるかどうか、つまり、モデルから削除されていないかどうかを示します。

(継承元 IConventionAnnotatable)
Item[String]

指定した名前の注釈の値を取得し、存在しない場合は を null 返します。

(継承元 IReadOnlyAnnotatable)
ModelName

モデル内のチェック制約の名前を取得します。

(継承元 IReadOnlyCheckConstraint)
Name

チェック制約のデータベース名を取得します。

(継承元 IReadOnlyCheckConstraint)
Sql

データベースのチェック制約で使用される制約 sql を取得します。

(継承元 IReadOnlyCheckConstraint)

メソッド

AddAnnotation(String, Object, Boolean)

このオブジェクトに注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

(継承元 IConventionAnnotatable)
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

オブジェクトに注釈を追加します。

(継承元 IConventionAnnotatable)
AddRuntimeAnnotation(String, Object)

このオブジェクトにランタイム注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

(継承元 IAnnotatable)
AnnotationsToDebugString(Int32)

オブジェクトで宣言されているすべての注釈のデバッグ文字列を取得します。

(継承元 IReadOnlyAnnotatable)
FindAnnotation(String)

指定した名前の注釈を取得し、存在しない場合は を null 返します。

(継承元 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

指定された名前のランタイム注釈を取得し、存在しない場合は を null 返します。

(継承元 IAnnotatable)
FindRuntimeAnnotationValue(String)

指定された名前のランタイム注釈の値を取得し、存在しない場合は を null 返します。

(継承元 IAnnotatable)
GetAnnotation(String)

指定した名前の注釈を取得し、存在しない場合は をスローします。

(継承元 IReadOnlyAnnotatable)
GetAnnotations()

現在の オブジェクトのすべての注釈を取得します。

(継承元 IReadOnlyAnnotatable)
GetConfigurationSource()

このチェック制約の構成ソースを取得します。

GetDefaultName()

このチェック制約に使用される既定のデータベース名を返します。

(継承元 IReadOnlyCheckConstraint)
GetDefaultName(StoreObjectIdentifier)

このチェック制約に使用される既定のデータベース名を返します。

(継承元 IReadOnlyCheckConstraint)
GetName(StoreObjectIdentifier)

チェック制約のデータベース名を取得します。

(継承元 IReadOnlyCheckConstraint)
GetNameConfigurationSource()

データベース名の構成ソースを取得します。

GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

指定された名前のランタイム注釈の値を取得し、存在しない場合は追加します。

(継承元 IAnnotatable)
GetRuntimeAnnotations()

現在の オブジェクトのすべてのランタイム注釈を取得します。

(継承元 IAnnotatable)
RemoveAnnotation(String)

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

(継承元 IConventionAnnotatable)
RemoveRuntimeAnnotation(String)

指定されたランタイム注釈をこのオブジェクトから削除します。

(継承元 IAnnotatable)
SetAnnotation(String, Object, Boolean)

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

(継承元 IConventionAnnotatable)
SetName(String, Boolean)

データベース内のチェック制約の名前を設定します。

SetOrRemoveAnnotation(String, Object, Boolean)

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

(継承元 IConventionAnnotatable)
SetRuntimeAnnotation(String, Object)

指定したキーの下に格納されているランタイム注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

(継承元 IAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

指定されたメタデータの人間が判読できる表現を作成します。

警告: 返される文字列の形式に依存しないでください。 デバッグ専用に設計されており、リリース間で任意に変更される可能性があります。

(継承元 IReadOnlyCheckConstraint)

拡張メソッド

AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

オブジェクトに注釈を追加します。

GetAnnotation(IConventionAnnotatable, String)

指定した名前の注釈を取得し、存在しない場合は をスローします。

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

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

AnnotationsToDebugString(IAnnotatable, Int32)

オブジェクトで宣言されているすべての注釈のデバッグ文字列を取得します。

GetAnnotation(IAnnotatable, String)

指定した名前の注釈を取得し、存在しない場合は をスローします。

ToDebugString(ICheckConstraint, MetadataDebugStringOptions, Int32)

指定されたメタデータの人間が判読できる表現を作成します。

警告: 返される文字列の形式に依存しないでください。 デバッグ専用に設計されており、リリース間で任意に変更される可能性があります。

適用対象