diff --git a/src/EFCore/Infrastructure/DatabaseFacade.cs b/src/EFCore/Infrastructure/DatabaseFacade.cs index 7066e76e3ad..2eee354f33e 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 AutoTransactionBehavior instead")] public virtual bool AutoTransactionsEnabled { get => AutoTransactionBehavior is AutoTransactionBehavior.Always or AutoTransactionBehavior.WhenNeeded;