Esempio n. 1
0
            public Aggregation(ImportedAggregateMigration migration, List <IMigrationMetadata> aggregatedMigrations)
            {
                Debug.Assert(aggregatedMigrations.All(m => m.ModuleName == migration.Metadata.ModuleName), "All migrations within an aggregation must belong to the same module.");

                _migration               = migration;
                _aggregatedMigrations    = aggregatedMigrations;
                _lastAggregatedMigration = aggregatedMigrations.Last();
            }
Esempio n. 2
0
            public Aggregation(ImportedAggregateMigration migration, List<IMigrationMetadata> aggregatedMigrations)
            {
                Debug.Assert(aggregatedMigrations.All(m => m.ModuleName == migration.Metadata.ModuleName), "All migrations within an aggregation must belong to the same module.");

                _migration = migration;
                _aggregatedMigrations = aggregatedMigrations;
                _lastAggregatedMigration = aggregatedMigrations.Last();
            }