diff --git a/src/EFCore/Infrastructure/DatabaseFacade.cs b/src/EFCore/Infrastructure/DatabaseFacade.cs index 7066e76e3ad..7288fc5b8e8 100644 --- a/src/EFCore/Infrastructure/DatabaseFacade.cs +++ b/src/EFCore/Infrastructure/DatabaseFacade.cs @@ -396,7 +396,7 @@ public virtual IDbContextTransaction? CurrentTransaction /// See Transactions in EF Core for more information and examples. /// /// - [Obsolete("Use EnableAutoTransactions instead")] + [Obsolete("Use " + nameof(AutoTransactionBehavior) + " instead")] public virtual bool AutoTransactionsEnabled { get => AutoTransactionBehavior is AutoTransactionBehavior.Always or AutoTransactionBehavior.WhenNeeded;