Class BaseMigrationUpgrader
Inheritance
BaseMigrationUpgrader
Assembly: LemonEdge.Database.Connector.dll
Syntax
public abstract class BaseMigrationUpgrader
Constructors
BaseMigrationUpgrader(IDataAccessor)
Declaration
protected BaseMigrationUpgrader(IDataAccessor accessor)
Parameters
Properties
Accessor
Declaration
public IDataAccessor Accessor { get; }
Property Value
AlwaysRunMigration
Declaration
public virtual bool AlwaysRunMigration { get; }
Property Value
DescriptorsForUpgrading
Declaration
protected IEnumerable<EntityDescriptor> DescriptorsForUpgrading { get; }
Property Value
IncludeWhenUpgradingFromScratch
Declaration
public virtual bool IncludeWhenUpgradingFromScratch { get; }
Property Value
Info
Declaration
public IDatabaseInfo Info { get; }
Property Value
Log
Declaration
protected ILogger Log { get; }
Property Value
Version
Declaration
public abstract MigrationOrder Version { get; }
Property Value
Methods
ExecuteSqlCommand(IDbConnection, string)
Declaration
protected Task ExecuteSqlCommand(IDbConnection cn, string commandText)
Parameters
Returns
RefreshDescriptorSchemas()
Declaration
public virtual IEnumerable<EntityDescriptor> RefreshDescriptorSchemas()
Returns
RunUpgradeAfterCompletionWithQueriesCreated(DataUpdater)
Declaration
public virtual Task RunUpgradeAfterCompletionWithQueriesCreated(DataUpdater updater)
Parameters
Returns
RunUpgradeAfterEntityExists(IDbConnection)
Declaration
public virtual Task RunUpgradeAfterEntityExists(IDbConnection cn)
Parameters
Returns
RunUpgradeAfterEntityUpgrades(IDbConnection)
Declaration
public virtual Task RunUpgradeAfterEntityUpgrades(IDbConnection cn)
Parameters
Returns
RunUpgradeBeforeEntityUpgrades(IDbConnection)
Declaration
public virtual Task RunUpgradeBeforeEntityUpgrades(IDbConnection cn)
Parameters
Returns
Extension Methods