Skip to content

Commit 3805e90

Browse files
authored
Update transactions.md (#3823)
Under the 'Share Connection and transaction' section, the 3rd highlight is on the wrong line. Instead of highlighting the `UseTransaction`, it highlights the opening curly bracket.
1 parent b8a9a7d commit 3805e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entity-framework/core/saving/transactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class BloggingContext : DbContext
8282

8383
You can now create multiple context instances that share the same connection. Then use the `DbContext.Database.UseTransaction(DbTransaction)` API to enlist both contexts in the same transaction.
8484

85-
[!code-csharp[Main](../../../samples/core/Saving/Transactions/SharingTransaction.cs?name=Transaction&highlight=1-3,6,14,21-23)]
85+
[!code-csharp[Main](../../../samples/core/Saving/Transactions/SharingTransaction.cs?name=Transaction&highlight=1-4,7,15,22-24)]
8686

8787
## Using external DbTransactions (relational databases only)
8888

0 commit comments

Comments
 (0)