views:

88

answers:

2

Is there a way to use EF without transaction? I have very simple single insert and don't want to roll-back when something goes wrong as there may be a trigger logging then raising error from the DB side which I have no control over. I just want to insert then catch any exceptions but don't want to roll-back.

+2  A: 

We are not aware of any way to get rid of transactions in Entity Framework CUD operations.

Devart
+2  A: 
using( var transation = new TransactionScope(TransactionScopeOption.Suppress) )
{
    ObjectContext.SaveChanges();
}
jfar