OperationExecutor.AddMigration 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| OperationExecutor.AddMigration(OperationExecutor, IOperationResultHandler, IDictionary) |
初始化 OperationExecutor.AddMigration 類別的新執行個體。 |
| OperationExecutor.AddMigration(OperationExecutor, Object, IDictionary) |
初始化 OperationExecutor.AddMigration 類別的新執行個體。 支持的
|
OperationExecutor.AddMigration(OperationExecutor, IOperationResultHandler, IDictionary)
初始化 OperationExecutor.AddMigration 類別的新執行個體。
public AddMigration(Microsoft.EntityFrameworkCore.Design.OperationExecutor executor, Microsoft.EntityFrameworkCore.Design.IOperationResultHandler resultHandler, System.Collections.IDictionary args);
new Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration : Microsoft.EntityFrameworkCore.Design.OperationExecutor * Microsoft.EntityFrameworkCore.Design.IOperationResultHandler * System.Collections.IDictionary -> Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration
Public Sub New (executor As OperationExecutor, resultHandler As IOperationResultHandler, args As IDictionary)
參數
- executor
- OperationExecutor
行動執行人。
- resultHandler
- IOperationResultHandler
- args
- IDictionary
手術的論點。
備註
支持的 args 論點包括:
name——遷徙的名字。
outputDir——要使用的目錄(及子命名空間)。 路徑相對於專案目錄。 預設為「遷移」。
contextType——該 DbContext 用的類型。
適用於
OperationExecutor.AddMigration(OperationExecutor, Object, IDictionary)
初始化 OperationExecutor.AddMigration 類別的新執行個體。
支持的 args 論點包括:
name——遷徙的名字。
outputDir——要使用的目錄(及子命名空間)。 路徑相對於專案目錄。 預設為「遷移」。
contextType——該 DbContext 用的類型。
public AddMigration(Microsoft.EntityFrameworkCore.Design.OperationExecutor executor, object resultHandler, System.Collections.IDictionary args);
new Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration : Microsoft.EntityFrameworkCore.Design.OperationExecutor * obj * System.Collections.IDictionary -> Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration
Public Sub New (executor As OperationExecutor, resultHandler As Object, args As IDictionary)
參數
- executor
- OperationExecutor
行動執行人。
- resultHandler
- Object
- args
- IDictionary
手術的論點。