Class VersionLoader
Inheritance
VersionLoader
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class VersionLoader : IVersionLoader
Constructors
Declaration
public VersionLoader(IProcessorAccessor processorAccessor, IConventionSet conventionSet, IMigrationRunnerConventions conventions, IVersionTableMetaData versionTableMetaData, IMigrationRunner runner)
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
AlreadyMadeVersionDescription
Declaration
public bool AlreadyMadeVersionDescription { get; }
Property Value
AlreadyMadeVersionUnique
Declaration
public bool AlreadyMadeVersionUnique { get; }
Property Value
Assemblies
Declaration
[CanBeNull]
[Obsolete]
protected IAssemblyCollection Assemblies { get; set; }
Property Value
OwnsVersionSchema
Declaration
public bool OwnsVersionSchema { get; }
Property Value
Runner
The runner this version loader belongs to
Declaration
[NotNull]
public IMigrationRunner Runner { 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; }
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
[NotNull]
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