Class VersionLoader
Inheritance
VersionLoader
Assembly: FluentMigrator.Runner.dll
Syntax
public class VersionLoader : IVersionLoader
Constructors
|
Edit this page
View Source
Declaration
public VersionLoader(IProcessorAccessor processorAccessor, IConventionSet conventionSet, IMigrationRunnerConventions conventions, IVersionTableMetaData versionTableMetaData, IMigrationRunner runner)
Parameters
Properties
|
Edit this page
View Source
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
|
Edit this page
View Source
AlreadyCreatedVersionTable
Gets a value indicating whether the version table has been created (or already exited)
Declaration
public bool AlreadyCreatedVersionTable { get; }
Property Value
|
Edit this page
View Source
AlreadyMadeVersionDescription
Declaration
public bool AlreadyMadeVersionDescription { get; }
Property Value
|
Edit this page
View Source
AlreadyMadeVersionUnique
Declaration
public bool AlreadyMadeVersionUnique { get; }
Property Value
|
Edit this page
View Source
Assemblies
Declaration
[CanBeNull]
[Obsolete]
protected IAssemblyCollection Assemblies { get; set; }
Property Value
|
Edit this page
View Source
OwnsVersionSchema
Declaration
public bool OwnsVersionSchema { get; }
Property Value
|
Edit this page
View Source
Runner
The runner this version loader belongs to
Declaration
[NotNull]
public IMigrationRunner Runner { get; set; }
Property Value
|
Edit this page
View Source
VersionDescriptionMigration
Declaration
public IMigration VersionDescriptionMigration { get; }
Property Value
|
Edit this page
View Source
VersionInfo
Gets an interface to query/update the status of migrations
Declaration
public IVersionInfo VersionInfo { get; set; }
Property Value
|
Edit this page
View Source
VersionMigration
Declaration
public IMigration VersionMigration { get; }
Property Value
|
Edit this page
View Source
VersionSchemaMigration
Declaration
public VersionSchemaMigration VersionSchemaMigration { get; }
Property Value
|
Edit this page
View Source
Gets the version table meta data
Declaration
public IVersionTableMetaData VersionTableMetaData { get; }
Property Value
|
Edit this page
View Source
VersionUniqueMigration
Declaration
public IMigration VersionUniqueMigration { get; }
Property Value
Methods
|
Edit this page
View Source
CreateVersionInfoInsertionData(long, string)
Declaration
protected virtual InsertionDataDefinition CreateVersionInfoInsertionData(long version, string description)
Parameters
Type |
Name |
Description |
long |
version |
|
string |
description |
|
Returns
|
Edit this page
View Source
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
|
|
Edit this page
View Source
Get the version table metadata
Declaration
[NotNull]
public IVersionTableMetaData GetVersionTableMetaData()
Returns
|
Edit this page
View Source
LoadVersionInfo()
Loads all version data stored in the version table
Declaration
public void LoadVersionInfo()
|
Edit this page
View Source
RemoveVersionTable()
Removes the version table
Declaration
public void RemoveVersionTable()
|
Edit this page
View Source
UpdateVersionInfo(long)
Adds the version information
Declaration
public void UpdateVersionInfo(long version)
Parameters
Type |
Name |
Description |
long |
version |
The version number
|
|
Edit this page
View Source
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