IReadOnlyCheckConstraint 介面

定義

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

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

備註

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

屬性

EntityType

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

Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
ModelName

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

Name

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

Sql

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

方法

AnnotationsToDebugString(Int32)

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

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

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

(繼承來源 IReadOnlyAnnotatable)
GetDefaultName()

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

GetDefaultName(StoreObjectIdentifier)

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

GetName(StoreObjectIdentifier)

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

ToDebugString(MetadataDebugStringOptions, Int32)

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

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

適用於