asp.net mvc - .NET transaction for Entitity Framework and WebAPI calls -
i have following sequential calls ef (entity framework) , web api mvc controller.
- create customer using ef
dbcontext. - create order customer using ef
dbcontext. - charge customer calling web api calls paypal api.
- update order of successful payment using ef
dbcontext. - call shipping web api notify ship order. web api calls ef
dbcontextcreate database entries.
as may notice, calls not using same ef dbcontext. have used transaction described here if same database related have 2 webapi calls need part of transaction too.
is possible achieve same transaction scope?
Comments
Post a Comment