We're trying to implement a quick prototype to prove something is possible with the Entity Framework...
We have an Informix DB that doesn't support transactions - is it possible to use the Entity Framework with this?
We have a working model, and the working providers, but it doesn't seem we can execute a CRUD query without transactions kicking in - we've even tried to surpress them...
[Test]
public void TestMethod1()
{
entities ent = new entities();
var a = ent.brands.Select(x => x);
using (TransactionScope trans = new TransactionScope(
TransactionScopeOption.Suppress))
{
ent.brands.AddObject(new brand() { br_name = "New Test Brand" });
ent.SaveChanges();
}
}
The error we're getting is below:
An error occurred while starting a transaction on the provider connection. See the inner exception for details.
I've looked around, and whats suggested is to use the suppression, but it doesn't seem to work... any ideas?