dotnet / dotnet/EntityFramework.Docs

Provide sample where TransactionScopeAsyncFlowOption set as parameter

Open
#2,495 1 comment 0 reactions 0 assignees View on GitHub
area-save-changes
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

Most part of developers write code based on async/await approach.
So they should pass the parameter _TransactionScopeAsyncFlowOption.Enabled_ to constructor of the _TransactionScope_ for correct working of they own apps.
It will be great if you provide in your sample next required options _new TransactionScope(TransactionScopeAsyncFlowOption.Enabled)_

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 1073c238-9389-d826-a696-f1108a4f2ce0
* Version Independent ID: cf56babd-def0-d76e-8eee-e33341b6a009
* Content: [Transactions - EF Core](https://docs.microsoft.com/en-us/ef/core/saving/transactions#share-connection-and-transaction)
* Content Source: [entity-framework/core/saving/transactions.md](https://github.com/dotnet/EntityFramework.Docs/blob/master/entity-framework/core/saving/transactions.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @rowanmiller
* Microsoft Alias: **avickers**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.