From d272d0b73282b08d5875b535713ab316f436a4e0 Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Thu, 3 Jul 2025 17:23:49 -0500 Subject: [PATCH] Make netfx version of SqlCommand.EndExecuteNonQueryAsync private --- .../netcore/src/Microsoft/Data/SqlClient/SqlCommand.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlCommand.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlCommand.cs index 47349b492e..9ae11c13f9 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlCommand.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlCommand.cs @@ -1492,8 +1492,7 @@ private void ThrowIfReconnectionHasBeenCanceled() } } - /// - public int EndExecuteNonQueryAsync(IAsyncResult asyncResult) + private int EndExecuteNonQueryAsync(IAsyncResult asyncResult) { SqlClientEventSource.Log.TryCorrelationTraceEvent("SqlCommand.EndExecuteNonQueryAsync | Info | Correlation | Object Id {0}, Activity Id {1}, Client Connection Id {2}, Command Text '{3}'", ObjectID, ActivityCorrelator.Current, Connection?.ClientConnectionId, CommandText); Debug.Assert(!_internalEndExecuteInitiated || _stateObj == null);