private static void ApplyMigration(DbMigrator migrator, string migrationId) { try { migrator.Update(migrationId); } catch (Exception ex) { var exceptionToThrow = new MigrationAssertFailedExecption( migrationId, $"Failed to migrate to {migrationId}; see inner exception for details.", ex); throw exceptionToThrow; } }