Cannot rollback ransaction with Entity Framework
- by Luca
I have to do queries on uncommitted changes and I tried to use transactions, but I found that it do not work if there are exceptions.
I made a simple example to reproduce the problem.
I have a database with only one table called "Tabella" and the table has two fields: "ID" is a autogenerated integer, and "Valore" is an integer with a Unique…