C# Class Simple.Migrator.BaseMigrate

Afficher le fichier Open project: juanplopes/simple

Protected Properties

Свойство Type Description
_availableMigrations List
_current long
_dryrun bool
_logger ILogger
_original List
_provider ITransformationProvider

Méthodes publiques

Méthode Description
Continue ( long targetVersion ) : bool
GetInstance ( List availableMigrations, ITransformationProvider provider, ILogger logger, string schemainfoname ) : BaseMigrate
Iterate ( ) : void
Migrate ( IMigration migration, string schemainfoname ) : void

Méthodes protégées

Méthode Description
BaseMigrate ( List availableMigrations, ITransformationProvider provider, ILogger logger, string schemainfoname ) : System.Collections.Generic
NextMigration ( ) : long

Finds the next migration available to be applied. Only returns migrations that have NOT already been applied.

PreviousMigration ( ) : long

Finds the previous migration that has been applied. Only returns migrations that HAVE already been applied.

Method Details

BaseMigrate() protected méthode

protected BaseMigrate ( List availableMigrations, ITransformationProvider provider, ILogger logger, string schemainfoname ) : System.Collections.Generic
availableMigrations List
provider ITransformationProvider
logger ILogger
schemainfoname string
Résultat System.Collections.Generic

Continue() public abstract méthode

public abstract Continue ( long targetVersion ) : bool
targetVersion long
Résultat bool

GetInstance() public static méthode

public static GetInstance ( List availableMigrations, ITransformationProvider provider, ILogger logger, string schemainfoname ) : BaseMigrate
availableMigrations List
provider ITransformationProvider
logger ILogger
schemainfoname string
Résultat BaseMigrate

Iterate() public méthode

public Iterate ( ) : void
Résultat void

Migrate() public abstract méthode

public abstract Migrate ( IMigration migration, string schemainfoname ) : void
migration IMigration
schemainfoname string
Résultat void

NextMigration() protected méthode

Finds the next migration available to be applied. Only returns migrations that have NOT already been applied.
protected NextMigration ( ) : long
Résultat long

PreviousMigration() protected méthode

Finds the previous migration that has been applied. Only returns migrations that HAVE already been applied.
protected PreviousMigration ( ) : long
Résultat long

Property Details

_availableMigrations protected_oe property

protected List _availableMigrations
Résultat List

_current protected_oe property

protected long _current
Résultat long

_dryrun protected_oe property

protected bool _dryrun
Résultat bool

_logger protected_oe property

protected ILogger _logger
Résultat ILogger

_original protected_oe property

protected List _original
Résultat List

_provider protected_oe property

protected ITransformationProvider _provider
Résultat ITransformationProvider