Skip to content

Commit

Permalink
Correct [Obsolete] message for AutoTransactionBehavior (dotnet#29991)
Browse files Browse the repository at this point in the history
Fixes dotnet#29990

(cherry picked from commit ac98b60)
  • Loading branch information
roji committed Jan 12, 2023
1 parent be8c0ef commit 9a596a9
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 " + nameof(AutoTransactionBehavior) + " instead")]
public virtual bool AutoTransactionsEnabled
{
get => AutoTransactionBehavior is AutoTransactionBehavior.Always or AutoTransactionBehavior.WhenNeeded;
Expand Down

0 comments on commit 9a596a9

Please sign in to comment.