Language

IConventionCheckConstraint インターフェイス

定義

エンティティ型の check 制約を表します。

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

注釈

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

プロパティ

Name 説明
Builder

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

EntityType

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

IsInModel

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

(継承元 IConventionAnnotatable)
Item[String]

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

(継承元 IAnnotatable)
ModelName

モデル内の check 制約の名前を取得します。

(継承元 IReadOnlyCheckConstraint)
Name

データベース内の check 制約の名前を取得します。

(継承元 ICheckConstraint)
Sql

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

(継承元 ICheckConstraint)

メソッド

Name 説明
AddAnnotation(String, Object, Boolean)

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

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

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

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

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

(継承元 IAnnotatable)
AnnotationsToDebugString(Int32)

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

(継承元 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(継承元 IAnnotatable)
FindRuntimeAnnotation(String)

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

(継承元 IAnnotatable)
FindRuntimeAnnotationValue(String)

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

(継承元 IAnnotatable)
GetAnnotation(String)

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

(継承元 IConventionAnnotatable)
GetAnnotations()

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

(継承元 IAnnotatable)
GetConfigurationSource()

この check 制約の構成ソースを取得します。

GetDefaultName()

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

(継承元 IReadOnlyCheckConstraint)
GetDefaultName(StoreObjectIdentifier)

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

(継承元 IReadOnlyCheckConstraint)
GetName(StoreObjectIdentifier)

check 制約のデータベース名を取得します。

(継承元 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)

データベースの check 制約の名前を設定します。

SetOrRemoveAnnotation(String, Object, Boolean)

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

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

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

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

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

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

(継承元 ICheckConstraint)

拡張メソッド

Name 説明
AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

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

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

GetAnnotation(IConventionAnnotatable, String)

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

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

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

ToDebugString(ICheckConstraint, MetadataDebugStringOptions, Int32)

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

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

適用対象