共用方式為


DropCheckConstraintOperation 類別

定義

MigrationOperation 用於卸載現有的檢查條件約束。

public class DropCheckConstraintOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation
[System.Diagnostics.DebuggerDisplay("ALTER TABLE {Table} DROP CONSTRAINT {Name}")]
public class DropCheckConstraintOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation
[System.Diagnostics.DebuggerDisplay("ALTER TABLE {Table} DROP CONSTRAINT {Name}")]
public class DropCheckConstraintOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.ITableMigrationOperation
type DropCheckConstraintOperation = class
    inherit MigrationOperation
[<System.Diagnostics.DebuggerDisplay("ALTER TABLE {Table} DROP CONSTRAINT {Name}")>]
type DropCheckConstraintOperation = class
    inherit MigrationOperation
[<System.Diagnostics.DebuggerDisplay("ALTER TABLE {Table} DROP CONSTRAINT {Name}")>]
type DropCheckConstraintOperation = class
    inherit MigrationOperation
    interface ITableMigrationOperation
Public Class DropCheckConstraintOperation
Inherits MigrationOperation
Public Class DropCheckConstraintOperation
Inherits MigrationOperation
Implements ITableMigrationOperation
繼承
DropCheckConstraintOperation
繼承
DropCheckConstraintOperation
屬性
實作

備註

如需詳細資訊和範例 ,請參閱資料庫移 轉。

建構函式

DropCheckConstraintOperation()

MigrationOperation 用於卸載現有的檢查條件約束。

屬性

IsDestructiveChange

指出作業是否可能導致資料庫中的資料遺失。

(繼承來源 MigrationOperation)
IsReadOnly

指出目前物件是否為唯讀。

(繼承來源 AnnotatableBase)
Item[String]

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

(繼承來源 Annotatable)
Name

條件約束的名稱。

Schema

包含資料表的架構,如果 null 應該使用預設架構,則為 。

Table

包含條件約束的資料表。

方法

AddAnnotation(String, Annotation)

將注釋加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 Annotatable)
AddAnnotation(String, Object)

將注釋加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 Annotatable)
AddAnnotations(IEnumerable<IAnnotation>)

將批註加入至這個 物件。

(繼承來源 AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

將批註加入至這個 物件。

(繼承來源 AnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

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

(繼承來源 AnnotatableBase)
AddRuntimeAnnotation(String, Object)

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

(繼承來源 AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

將執行時間批註新增至這個 物件。

(繼承來源 AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

將執行時間批註新增至這個 物件。

(繼承來源 AnnotatableBase)
CreateAnnotation(String, Object)

建立新的批註。

(繼承來源 Annotatable)
CreateRuntimeAnnotation(String, Object)

建立新的執行時間批註。

(繼承來源 AnnotatableBase)
EnsureMutable()

如果模型是唯讀的,則會擲回 。

(繼承來源 Annotatable)
EnsureReadOnly()

如果模型不是唯讀,則會擲回 。

(繼承來源 Annotatable)
FindAnnotation(String)

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

(繼承來源 Annotatable)
FindRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
GetAnnotation(String)

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

(繼承來源 AnnotatableBase)
GetAnnotations()

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

(繼承來源 Annotatable)
GetOrAddAnnotation(String, Object)

將注釋新增至這個物件,如果已有指定名稱的注釋存在,則傳回現有的注釋。

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

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

(繼承來源 AnnotatableBase)
GetRuntimeAnnotations()

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

(繼承來源 AnnotatableBase)
OnAnnotationSet(String, Annotation, Annotation)

設定或移除注釋時呼叫。

(繼承來源 Annotatable)
RemoveAnnotation(String)

從這個 物件中移除指定的批註。

(繼承來源 Annotatable)
RemoveRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
SetAnnotation(String, Annotation)

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

(繼承來源 Annotatable)
SetAnnotation(String, Annotation, Annotation)

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

(繼承來源 Annotatable)
SetAnnotation(String, Object)

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

(繼承來源 Annotatable)
SetRuntimeAnnotation(String, Annotation, Annotation)

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

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

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

(繼承來源 AnnotatableBase)

明確介面實作

IAnnotatable.AddRuntimeAnnotation(String, Object)

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

(繼承來源 AnnotatableBase)
IAnnotatable.FindAnnotation(String)

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

(繼承來源 Annotatable)
IAnnotatable.FindRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
IAnnotatable.GetAnnotations()

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

(繼承來源 Annotatable)
IAnnotatable.GetRuntimeAnnotations()

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

(繼承來源 AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

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

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

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

(繼承來源 AnnotatableBase)
IMutableAnnotatable.AddAnnotation(String, Object)

將注釋加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 Annotatable)
IMutableAnnotatable.RemoveAnnotation(String)

從這個 物件中移除指定的批註。

(繼承來源 Annotatable)
IMutableAnnotatable.SetOrRemoveAnnotation(String, Object)

設定儲存在指定名稱底下的批註。 如果具有指定名稱的注釋已經存在,則會覆寫現有的批註。 如果 null 已提供,則會移除現有的批註。

(繼承來源 Annotatable)
IReadOnlyAnnotatable.FindAnnotation(String)

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

(繼承來源 AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

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

(繼承來源 AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

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

(繼承來源 AnnotatableBase)

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

將批註加入物件。

GetAnnotation(IMutableAnnotatable, String)

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

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)

設定儲存在指定名稱底下的批註。 如果具有指定名稱的注釋已經存在,則會覆寫現有的批註。 如果 null 已提供,則會移除現有的批註。

適用於