Class MigrationInfo
OptimaJet.Workflow.Migrator.MigrationInfo
Represents a database migration and its associated SQL script.
Namespace: OptimaJet.Workflow.Migrator
public class MigrationInfoConstructors
public MigrationInfo(string name, long migrationVersion, string sqlScript, string? productName = null, string? productVersion = null) #Initializes a new instance of the MigrationInfo class.
Parameters
Name
Type
Description
nameStringThe fully qualified name of the SQL migration script.
migrationVersionInt64The migration version.
sqlScriptStringThe SQL migration script.
productVersionStringThe product version in which the migration was introduced, or null if the product version is not specified.
Exceptions
Type
Description
ArgumentNullExceptionProperties
public string Name { get; } #The fully qualified name of the SQL migration script.
public long MigrationVersion { get; } #The migration version.
public string? ProductName { get; } #The product name. or null if the product name is not specified.
public string? ProductVersion { get; } #The product version in which the migration was introduced. or null if the product version is not specified.
public string SqlScript { get; } #The text of the SQL script.