public IOrderedEnumerable <Type> GetMigrations(Func <Type, bool> predicate)
 {
     return(LoadAssembly()
            .GetTypes()
            .Where(it => typeof(DbMigration).IsAssignableFrom(it) && predicate(it))
            .OrderBy(it => DbMigrationHelper.GetMigrationOrder(it)));
 }
 public IOrderedEnumerable <Type> GetMigrationsBefore(long migrationOrder)
 {
     return(GetMigrations(it => DbMigrationHelper.GetMigrationOrder(it) < migrationOrder));
 }