If you run an entity framework migration (either automatic or explicit) against tables published for SQL Server replication you get the following error:
Would it help to create your onw Migrator?
internal sealed class Configuration : DbMigrationsConfiguration
{
public Configuration()
{
SetSqlGenerator("System.Data.SqlClient", new SqlMigrator());
}
private class SqlMigrator : SqlServerMigrationSqlGenerator
{
public override IEnumerable Generate(
IEnumerable migrationOperations, string providerManifestToken)
{
yield return new MigrationStatement { Sql = "set transaction isolation level read committed" };
foreach (var statement in base.Generate(migrationOperations, providerManifestToken))
yield return statement;
}
}
}