From 44a338381290200f254901efd47c41f039090b5f Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Mon, 1 Apr 2024 09:43:00 +0200 Subject: [PATCH] Make INpgsqlRelationalConnection.CloneWith return INpgsqlRelationalConnection Closes #3124 --- src/EFCore.PG/Storage/Internal/INpgsqlRelationalConnection.cs | 2 +- src/EFCore.PG/Storage/Internal/NpgsqlRelationalConnection.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EFCore.PG/Storage/Internal/INpgsqlRelationalConnection.cs b/src/EFCore.PG/Storage/Internal/INpgsqlRelationalConnection.cs index 6e8e74dfb..cfeef63a2 100644 --- a/src/EFCore.PG/Storage/Internal/INpgsqlRelationalConnection.cs +++ b/src/EFCore.PG/Storage/Internal/INpgsqlRelationalConnection.cs @@ -22,5 +22,5 @@ public interface INpgsqlRelationalConnection : IRelationalConnection /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// - NpgsqlRelationalConnection CloneWith(string connectionString); + INpgsqlRelationalConnection CloneWith(string connectionString); } diff --git a/src/EFCore.PG/Storage/Internal/NpgsqlRelationalConnection.cs b/src/EFCore.PG/Storage/Internal/NpgsqlRelationalConnection.cs index 79e651096..77b3f81e2 100644 --- a/src/EFCore.PG/Storage/Internal/NpgsqlRelationalConnection.cs +++ b/src/EFCore.PG/Storage/Internal/NpgsqlRelationalConnection.cs @@ -215,7 +215,7 @@ public override Transaction? CurrentAmbientTransaction /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// - public virtual NpgsqlRelationalConnection CloneWith(string connectionString) + public virtual INpgsqlRelationalConnection CloneWith(string connectionString) { var clonedDbConnection = DbConnection.CloneWith(connectionString);