This definitely prevents us from implementing this new feature in existing projects. Can this be fixed?
Here is a simple example of the problem. When conn.BeginTransaction() is called an error is thrown.
Code: Select all
var conn = new PgSqlConnection("...");
using (var scope = new TransactionScope())
{
conn.Open();
using (var localTx = conn.BeginTransaction())
{
var cmd = conn.CreateCommand();
cmd.CommandText = "INSERT INTO TestTable (1)";
cmd.Transaction = localTx;
localTx.Commit();
}
scope.Complete();
}