Skip to content

Commit 10f1d39

Browse files
authored
[release/7.0] Correct [Obsolete] message for AutoTransactionBehavior (#30040)
1 parent 21c33ba commit 10f1d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EFCore/Infrastructure/DatabaseFacade.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public virtual IDbContextTransaction? CurrentTransaction
396396
/// See <see href="https://aka.ms/efcore-docs-transactions">Transactions in EF Core</see> for more information and examples.
397397
/// </para>
398398
/// </remarks>
399-
[Obsolete("Use EnableAutoTransactions instead")]
399+
[Obsolete("Use " + nameof(AutoTransactionBehavior) + " instead")]
400400
public virtual bool AutoTransactionsEnabled
401401
{
402402
get => AutoTransactionBehavior is AutoTransactionBehavior.Always or AutoTransactionBehavior.WhenNeeded;

0 commit comments

Comments
 (0)