> Your comment "...is only in database, not in context" indicates that
> something needs to be done here: But what?
You need to fix the problem in entity (or detach it, if you just want to
throw it away).
--
Mgr. Jiří Činčura
Independent IT Specialist
anks
Niko
-Ursprüngliche Nachricht-
Von: Jiří Činčura [mailto:j...@cincura.net]
Gesendet: Dienstag, 13. September 2016 18:22
An: firebird-net-provider@lists.sourceforge.net
Betreff: Re: [Firebird-net-provider] Best practice for Rollback with EF and
Firebird
> Is it really necce
> Is it really neccesssary to get transaction before context:SaveChanges()
> in
> order to rollback?
Yes, if you want to rollback manually. OTOH if there's an error while
processing the data, the rollback is automatic. Also take into account
that the transaction is only in database, not in
Hello,
what is the best practice to rollback a failed statement with EF?
1. Working with an entity in a context
2. Putting a raw SQL statement to the database via the context
Is it really neccesssary to get transaction before context:SaveChanges() in
order to rollback?