MigrationsBundle.Execute(String, Assembly, Assembly, String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework