MigrationsBundle.Execute(String, Assembly, Assembly, String[]) Method

Definition

The entry point for Migrations bundles.

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

Parameters

context
String

The DbContext to use.

assembly
Assembly

The Migrations assembly.

startupAssembly
Assembly

The startup assembly.

args
String[]

The command-line arguments.

Returns

Zero if the command succeeds; otherwise, one.

Applies to