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[]

命令行参数。

返回

如果命令成功,则为零;否则为 1。

适用于