Workflow Engine .NET

Assembly: OptimaJet.Workflow.Migrator

Class WorkflowRuntimeExtensions

OptimaJet.Workflow.Migrator.WorkflowRuntimeExtensions

Provides extension methods for running database migrations on a WorkflowEngine runtime.

public static class WorkflowRuntimeExtensions

Inheritance

  • System.Object

Methods

public static WorkflowRuntime RunMigrations(this WorkflowRuntime runtime) #
Runs migrations for the specified runtime.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowEngine runtime instance.

Returns

Type
Description
WorkflowRuntime
The WorkflowEngine runtime instance.
public static WorkflowRuntime RunCustomMigration(this WorkflowRuntime runtime, Assembly assembly) #
Runs migrations for the specified runtime from the specified assembly.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowEngine runtime instance.
assembly
Assembly
The assembly with migrations.

Returns

Type
Description
WorkflowRuntime
The WorkflowEngine runtime instance.
public static IEnumerable<string> GetUnappliedMigrationNames(this WorkflowRuntime runtime, Assembly? scanIn = null) #
Get a list of names of not applied SQL scripts.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowEngine runtime instance.
scanIn
Assembly
The custom assembly with migrations.

Returns

Type
Description
IEnumerable<String>
The list of script names.
public static IEnumerable<string> GetMigrationNames(this WorkflowRuntime runtime, Assembly? scanIn = null) #
Get a list of SQL script names.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowEngine runtime instance.
scanIn
Assembly
The custom assembly with migrations.

Returns

Type
Description
IEnumerable<String>
The list of script names.
public static string GetMigrationSql(this WorkflowRuntime runtime, string scriptName, Assembly? scanIn = null) #
Get the text of the SQL script.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowEngine runtime instance.
scriptName
String
The full name of the SQL script.
scanIn
Assembly
The custom assembly with migrations.

Returns

Type
Description
String
The text of the SQL script.