From 10f1d396d4669de55b1e46899e353f4914bf2c85 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Thu, 12 Jan 2023 19:20:01 +0100 Subject: [PATCH] [release/7.0] Correct [Obsolete] message for AutoTransactionBehavior (#30040) --- src/EFCore/Infrastructure/DatabaseFacade.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;