...
Code Block | ||
---|---|---|
| ||
using (var scope = transactionScopeFactory.CreateScope()) { try { //Updates to configuration data scope.Complete(); } catch (Exception ex) { logger.LogError(ex, $"Exception occured: {ex.Message}"); } } |
Example: Using transaction scopes across
...
databases.
Transactions that consists of updates to multiple databases are called distributed transactions. Unfortunately these types of transactions are not supported and would result in a PlatformNotSupportedException.
...