Skip to content

Commit

Permalink
Correct [Obsolete] message for AutoTransactionBehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Jan 5, 2023
1 parent 35a9fe3 commit 9599bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EFCore/Infrastructure/DatabaseFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public virtual IDbContextTransaction? CurrentTransaction
/// See <see href="https://aka.ms/efcore-docs-transactions">Transactions in EF Core</see> for more information and examples.
/// </para>
/// </remarks>
[Obsolete("Use EnableAutoTransactions instead")]
[Obsolete("Use AutoTransactionBehavior instead")]
public virtual bool AutoTransactionsEnabled
{
get => AutoTransactionBehavior is AutoTransactionBehavior.Always or AutoTransactionBehavior.WhenNeeded;
Expand Down

0 comments on commit 9599bb4

Please sign in to comment.