Skip to content

Commit

Permalink
[release/7.0] Correct [Obsolete] message for AutoTransactionBehavior (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
roji authored Jan 12, 2023
1 parent 21c33ba commit 10f1d39
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 10f1d39

Please sign in to comment.