Class ConnectionlessVersionLoader
Inheritance
ConnectionlessVersionLoader
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class ConnectionlessVersionLoader : IVersionLoader
Constructors
Declaration
public ConnectionlessVersionLoader(IProcessorAccessor processorAccessor, IMigrationRunnerConventions conventions, IOptions<RunnerOptions> runnerOptions, IMigrationInformationLoader migrationInformationLoader, IVersionTableMetaData versionTableMetaData)
Parameters
Properties
AlreadyCreatedVersionSchema
Gets a value indicating whether the schema for the version table has been created (or already exited)
Declaration
public bool AlreadyCreatedVersionSchema { get; }
Property Value
AlreadyCreatedVersionTable
Gets a value indicating whether the version table has been created (or already exited)
Declaration
public bool AlreadyCreatedVersionTable { get; }
Property Value
Assemblies
Declaration
[Obsolete]
[CanBeNull]
protected IAssemblyCollection Assemblies { get; set; }
Property Value
Conventions
Declaration
public IMigrationRunnerConventions Conventions { get; set; }
Property Value
Runner
The runner this version loader belongs to
Declaration
[Obsolete]
[CanBeNull]
public IMigrationRunner Runner { get; set; }
Property Value
StartVersion
Declaration
public long StartVersion { get; set; }
Property Value
TargetVersion
Declaration
public long TargetVersion { get; set; }
Property Value
VersionDescriptionMigration
Declaration
public IMigration VersionDescriptionMigration { get; }
Property Value
VersionInfo
Gets an interface to query/update the status of migrations
Declaration
public IVersionInfo VersionInfo { get; set; }
Property Value
VersionMigration
Declaration
public IMigration VersionMigration { get; }
Property Value
VersionSchemaMigration
Declaration
public VersionSchemaMigration VersionSchemaMigration { get; }
Property Value
Gets the version table meta data
Declaration
public IVersionTableMetaData VersionTableMetaData { get; set; }
Property Value
VersionUniqueMigration
Declaration
public IMigration VersionUniqueMigration { get; }
Property Value
Methods
CreateVersionInfoInsertionData(long, string)
Declaration
protected virtual InsertionDataDefinition CreateVersionInfoInsertionData(long version, string description)
Parameters
Type |
Name |
Description |
long |
version |
|
string |
description |
|
Returns
DeleteVersion(long)
Deletes a version from the version table
Declaration
public void DeleteVersion(long version)
Parameters
Type |
Name |
Description |
long |
version |
The version to delete from the version table
|
Get the version table metadata
Declaration
public IVersionTableMetaData GetVersionTableMetaData()
Returns
LoadVersionInfo()
Loads all version data stored in the version table
Declaration
public void LoadVersionInfo()
RemoveVersionTable()
Removes the version table
Declaration
public void RemoveVersionTable()
UpdateVersionInfo(long)
Adds the version information
Declaration
public void UpdateVersionInfo(long version)
Parameters
Type |
Name |
Description |
long |
version |
The version number
|
UpdateVersionInfo(long, string)
Adds the version information
Declaration
public void UpdateVersionInfo(long version, string description)
Parameters
Type |
Name |
Description |
long |
version |
The version number
|
string |
description |
The version description
|
Implements