Last post Aug 03, 2016 08:29 AM by PatriceSc
Aug 02, 2016 03:25 PM|sudip_inn|LINK
we often insert update data in multiple table by store procedure where we maintain transaction. how to achieve the same with EF without using store procedure.
please discuss with sample code or redirect me to any good write up for this issue.
another question how EF use transaction when it insert or update data in table.
Aug 02, 2016 05:58 PM|skliz4rel|LINK
check this link. I am also having this problem myself
Aug 03, 2016 07:31 AM|Yohann Lu|LINK
You can use EF Transaction to insert data in multiple tables.
EF Transaction support:
Working With Transaction in Entity Framework 6.0 :
Aug 03, 2016 08:29 AM|PatriceSc|LINK
You have also https://msdn.microsoft.com/en-us/data/ee712907 and in this particular case
So as already reported if for now you just save a "graph" of objects then EF already wraps this in a single transaction for you.