they need to use the same connection (which is hard with EF) or be a common distributed transactions. see:
https://learn.microsoft.com/en-us/ef/ef6/saving/transactions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I like to archieve a single transaction commit after running Project A update statement and Project B SQLBulkCopy. Is it possible for SQLBulkCopy to be nested inside Project A transaction? I have try pass in Project A SqlTransaction and use inside Project B SqlBulkCopy but encountered "The transaction is either not associated with the current connection or has been completed." is due to a new initialize of SQLConnection inside SQLBulkCopy?
Please advise
they need to use the same connection (which is hard with EF) or be a common distributed transactions. see:
https://learn.microsoft.com/en-us/ef/ef6/saving/transactions