private MigrationInfo GetMigrationInfo(MigrationsSource source)
{
var assembly = (source == MigrationsSource.Target)
? this.TargetAssembly
: this.DeployedAssembly;
if (assembly == null)
{
throw new InvalidOperationException("Source assembly could not be loaded");
}
var migrationConfigurationType = m_Config.MigrationConfig.Type;
return new MigrationInfo(
source,
assembly,
migrationConfigurationType,
GetContextKeySchema(assembly, migrationConfigurationType),
GetDbMigrator(assembly, migrationConfigurationType));
}