共用方式為


MigrationsBundle.Execute(String, Assembly, Assembly, String[]) 方法

定義

移轉套件組合的進入點。

public static int Execute (string? context, System.Reflection.Assembly assembly, System.Reflection.Assembly startupAssembly, string[] args);
static member Execute : string * System.Reflection.Assembly * System.Reflection.Assembly * string[] -> int
Public Shared Function Execute (context As String, assembly As Assembly, startupAssembly As Assembly, args As String()) As Integer

參數

context
String

要使用的 DbCoNtext。

assembly
Assembly

移轉元件。

startupAssembly
Assembly

啟動元件。

args
String[]

命令列引數。

傳回

如果命令成功,則為零;否則為一。

適用於