IConventionCheckConstraint 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表對實體類型的檢查約束。
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
- 實作
備註
更多資訊與範例請參閱 資料庫檢查約束 。
屬性
| 名稱 | Description |
|---|---|
| Builder |
取得可用來配置此檢查約束的建構工具。 |
| EntityType |
取得定義此檢查約束的實體類型。 |
| IsInModel |
表示該物件是否在模型中,也就是尚未從模型中移除。 (繼承來源 IConventionAnnotatable) |
| Item[String] |
取得帶有名稱的值註解,若不存在則回 |
| ModelName |
取得模型中檢查約束的名稱。 (繼承來源 IReadOnlyCheckConstraint) |
| Name |
取得資料庫中檢查約束的名稱。 (繼承來源 ICheckConstraint) |
| Sql |
取得資料庫中檢查約束中使用的限制 sql。 (繼承來源 ICheckConstraint) |
方法
擴充方法
| 名稱 | Description |
|---|---|
| AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean) |
為物件添加註解。 |
| AnnotationsToDebugString(IAnnotatable, Int32) |
取得物件上所有宣告註解的除錯字串。 |
| GetAnnotation(IAnnotatable, String) |
取得帶有名稱的註解,若不存在則拋出。 |
| GetAnnotation(IConventionAnnotatable, String) |
取得帶有名稱的註解,若不存在則拋出。 |
| SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean) |
設定以名字儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。 若 |
| ToDebugString(ICheckConstraint, MetadataDebugStringOptions, Int32) |
建立給定元資料的可讀表示法。 警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。 |