- My current scenario is that I am updating an Employee entity in DB from
ASP.NET MVC application and after that update I am publishing a contract entity IEmployeeAudit and insert it into EmployeeUpdateAudit table using Topshelf service.
- So, Can I put both statement in a single transaction ?
- e.g.,
Begin Transaction
Update(objEmployee)---------------------From web app
Publish(empAudit)
Inside Consume() Create(empAudit)---In TopShelf Service
Commit Transaction