Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

How do I delete in entity framework, and also perform a rollback in case of a failure ?

$
0
0

Using entity framework, I need to delete records from a single table based upon a unique column Id.

I have alot of data which I need to update in a single database table. Really it makes more sense for me to just delete all of the data, and to insert new data.

In entity framework how do I delete records based upon a Single Id, and also, how can I implement a Rollback in case the delete, insert new fails ?


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>