CreateTableOperation 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
MigrationOperation用於建立新資料表的 。
public class CreateTableOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation
public class CreateTableOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.TableOperation
[System.Diagnostics.DebuggerDisplay("CREATE TABLE {Name}")]
public class CreateTableOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.TableOperation
type CreateTableOperation = class
inherit MigrationOperation
type CreateTableOperation = class
inherit TableOperation
[<System.Diagnostics.DebuggerDisplay("CREATE TABLE {Name}")>]
type CreateTableOperation = class
inherit TableOperation
Public Class CreateTableOperation
Inherits MigrationOperation
Public Class CreateTableOperation
Inherits TableOperation
- 繼承
- 繼承
- 繼承
- 屬性
備註
如需詳細資訊和範例 ,請參閱資料庫移轉 。
建構函式
| CreateTableOperation() |
MigrationOperation用於建立新資料表的 。 |
屬性
| CheckConstraints |
在資料表中建立檢查條件約束的 清單 AddCheckConstraintOperation 。 |
| Columns |
的已排序清單, AddColumnOperation 用於將資料行加入資料表。 |
| Comment |
此資料表的批註 (繼承來源 TableOperation) |
| ForeignKeys |
在資料表中建立外鍵條件約束的 清單 AddForeignKeyOperation 。 |
| IsDestructiveChange |
指出作業是否可能導致資料庫中的資料遺失。 (繼承來源 MigrationOperation) |
| IsReadOnly |
指出目前物件是否為唯讀。 (繼承來源 AnnotatableBase) |
| Item[String] |
取得具有指定名稱的值批註,如果不存在,則傳 |
| Name |
資料表的名稱。 |
| Name |
資料表的名稱。 (繼承來源 TableOperation) |
| PrimaryKey |
, AddPrimaryKeyOperation 表示建立資料表的主鍵。 |
| Schema |
包含資料表的架構,如果 |
| Schema |
包含資料表的架構,如果 |
| UniqueConstraints |
在資料表中建立唯一條件約束的 清單 AddUniqueConstraintOperation 。 |
方法
明確介面實作
擴充方法
| AnnotationsToDebugString(IAnnotatable, Int32) |
取得 物件上宣告之所有批註的偵錯字串。 |
| GetAnnotation(IAnnotatable, String) |
取得具有指定名稱的注釋,如果不存在,則會擲回。 |
| AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>) |
將批註加入物件。 |
| GetAnnotation(IMutableAnnotatable, String) |
取得具有指定名稱的注釋,如果不存在,則會擲回。 |
| GetOrAddAnnotation(IMutableAnnotatable, String, String) |
取得具有指定索引鍵的現有注釋,如果不存在,則加入新的批註。 |
| SetOrRemoveAnnotation(IMutableAnnotatable, String, Object) |
設定儲存在指定名稱下的批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 如果 |