Beispiel #1
0
        public void Up()
        {
            _commonDb.CreateDatabaseIfNotExists();
            CreateTableIfNotExists();

            foreach (var migrationInfo in _migrationCollection.Select(m => new MigrationInfo(m)).OrderBy(mi => mi.Attribute.Order))
            {
                Up(migrationInfo);
                Thread.Sleep(1);
            }
        }
Beispiel #2
0
        public void Up()
        {
            _commonDb.CreateDatabaseIfNotExists();
            CreateTableIfNotExists();

            foreach (var migration in _migrationCollection)
            {
                var migrationInfo = new MigrationInfo(migration);
                Up(migrationInfo);
                Thread.Sleep(1);
            }
        }