OperationExecutor.ScriptMigration 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| OperationExecutor.ScriptMigration(OperationExecutor, IOperationResultHandler, IDictionary) |
初始化 OperationExecutor.ScriptMigration 類別的新執行個體。 |
| OperationExecutor.ScriptMigration(OperationExecutor, Object, IDictionary) |
初始化 OperationExecutor.ScriptMigration 類別的新執行個體。 支持的
|
OperationExecutor.ScriptMigration(OperationExecutor, IOperationResultHandler, IDictionary)
初始化 OperationExecutor.ScriptMigration 類別的新執行個體。
public ScriptMigration(Microsoft.EntityFrameworkCore.Design.OperationExecutor executor, Microsoft.EntityFrameworkCore.Design.IOperationResultHandler resultHandler, System.Collections.IDictionary args);
new Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScriptMigration : Microsoft.EntityFrameworkCore.Design.OperationExecutor * Microsoft.EntityFrameworkCore.Design.IOperationResultHandler * System.Collections.IDictionary -> Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScriptMigration
Public Sub New (executor As OperationExecutor, resultHandler As IOperationResultHandler, args As IDictionary)
參數
- executor
- OperationExecutor
行動執行人。
- resultHandler
- IOperationResultHandler
- args
- IDictionary
手術的論點。
備註
支持的 args 論點包括:
fromMigration——開始遷徙。 預設為 InitialDatabase。
toMigration——終結的遷徙。 預設為最後一次遷移。
idempotent--產生一個可用於資料庫的腳本,進行任何遷移。
noTransactions——不要產生 SQL 交易語句。
contextType——用來 DbContext 用的。
適用於
OperationExecutor.ScriptMigration(OperationExecutor, Object, IDictionary)
初始化 OperationExecutor.ScriptMigration 類別的新執行個體。
支持的 args 論點包括:
fromMigration——開始遷徙。 預設為 InitialDatabase。
toMigration——終結的遷徙。 預設為最後一次遷移。
idempotent--產生一個可用於資料庫的腳本,進行任何遷移。
contextType——用來 DbContext 用的。
public ScriptMigration(Microsoft.EntityFrameworkCore.Design.OperationExecutor executor, object resultHandler, System.Collections.IDictionary args);
new Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScriptMigration : Microsoft.EntityFrameworkCore.Design.OperationExecutor * obj * System.Collections.IDictionary -> Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScriptMigration
Public Sub New (executor As OperationExecutor, resultHandler As Object, args As IDictionary)
參數
- executor
- OperationExecutor
行動執行人。
- resultHandler
- Object
- args
- IDictionary
手術的論點。