ICheckConstraint 介面

定義

表示實體類型的檢查條件約束。

public interface ICheckConstraint
public interface ICheckConstraint : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
public interface ICheckConstraint : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint
type ICheckConstraint = interface
type ICheckConstraint = interface
    interface IAnnotatable
type ICheckConstraint = interface
    interface IReadOnlyCheckConstraint
    interface IReadOnlyAnnotatable
    interface IAnnotatable
Public Interface ICheckConstraint
Public Interface ICheckConstraint
Implements IAnnotatable
Public Interface ICheckConstraint
Implements IAnnotatable, IReadOnlyCheckConstraint
衍生
實作

備註

如需詳細資訊和範例,請參閱 資料庫檢查條件約束

屬性

EntityType

取得定義這個檢查條件約束的實體類型。

Item[String]

取得具有指定名稱之注釋的值,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
ModelName

取得模型中檢查條件約束的名稱。

(繼承來源 IReadOnlyCheckConstraint)
Name

取得資料庫中檢查條件約束的名稱。

Sql

取得資料庫中檢查條件約束中使用的條件約束 SQL。

方法

AddRuntimeAnnotation(String, Object)

將執行時間批註新增至這個 物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得 物件上宣告之所有注釋的偵錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

取得具有指定名稱的執行時間批註,如果不存在,則 null 傳回 。

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得具有指定名稱的執行時間批註值,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
GetAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前 物件上的所有批註。

(繼承來源 IReadOnlyAnnotatable)
GetDefaultName()

傳回將用於這個檢查條件約束的預設資料庫名稱。

(繼承來源 IReadOnlyCheckConstraint)
GetDefaultName(StoreObjectIdentifier)

傳回將用於這個檢查條件約束的預設資料庫名稱。

(繼承來源 IReadOnlyCheckConstraint)
GetName(StoreObjectIdentifier)

取得檢查條件約束的資料庫名稱。

(繼承來源 IReadOnlyCheckConstraint)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得具有指定名稱的執行時間批註值,如果不存在,請加以新增。

(繼承來源 IAnnotatable)
GetRuntimeAnnotations()

取得目前 物件上的所有執行時間批註。

(繼承來源 IAnnotatable)
RemoveRuntimeAnnotation(String)

從這個 物件中移除指定的執行時間批註。

(繼承來源 IAnnotatable)
SetRuntimeAnnotation(String, Object)

設定儲存在指定索引鍵底下的執行時間批註。 如果具有指定名稱的注釋已經存在,則會覆寫現有的批註。

(繼承來源 IAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:不要依賴傳回字串的格式。 它專為偵錯而設計,而且可能會在發行之間任意變更。

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

取得 物件上宣告之所有注釋的偵錯字串。

GetAnnotation(IAnnotatable, String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

ToDebugString(ICheckConstraint, MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:不要依賴傳回字串的格式。 它專為偵錯而設計,而且可能會在發行之間任意變更。

適用於