C# Class Raven.Migrations.Migrator

Mostra file Open project: andrewdavey/ravendb-migrations Class Usage Examples

Public Methods

Method Description
EnsureCanMigrate ( long toVersion, Type>.Dictionary migrationTypes, Assembly assemblyContainingMigrations ) : void
Migrate ( IDocumentStore store, Assembly assemblyContainingMigrations, long toVersion = -1 ) : void
MigrateDownTo ( long version, IEnumerable appliedMigrations, ISet appliedVersions, Type>.IDictionary migrationTypes, IDocumentSession session ) : void
MigrateUpTo ( long version, ISet appliedVersions, Type>.IDictionary migrationTypes, IDocumentSession session ) : void

Private Methods

Method Description
DownToVersionFilter ( long toVersion, ISet appliedVersions ) : bool>.Func
GetAppliedMigrations ( IDocumentStore store ) : IEnumerable
GetMigrationTypes ( Assembly assemblyContainingMigrations ) : Type>.Dictionary
UpToVersionFilter ( long toVersion, ISet appliedVersions ) : bool>.Func

Method Details

EnsureCanMigrate() public method

public EnsureCanMigrate ( long toVersion, Type>.Dictionary migrationTypes, Assembly assemblyContainingMigrations ) : void
toVersion long
migrationTypes Type>.Dictionary
assemblyContainingMigrations System.Reflection.Assembly
return void

Migrate() public method

public Migrate ( IDocumentStore store, Assembly assemblyContainingMigrations, long toVersion = -1 ) : void
store IDocumentStore
assemblyContainingMigrations System.Reflection.Assembly
toVersion long
return void

MigrateDownTo() public method

public MigrateDownTo ( long version, IEnumerable appliedMigrations, ISet appliedVersions, Type>.IDictionary migrationTypes, IDocumentSession session ) : void
version long
appliedMigrations IEnumerable
appliedVersions ISet
migrationTypes Type>.IDictionary
session IDocumentSession
return void

MigrateUpTo() public method

public MigrateUpTo ( long version, ISet appliedVersions, Type>.IDictionary migrationTypes, IDocumentSession session ) : void
version long
appliedVersions ISet
migrationTypes Type>.IDictionary
session IDocumentSession
return void