Skip to content

Commit 5f70372

Browse files
committed
Missed some
1 parent 035aec1 commit 5f70372

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnectionFactory.AssemblyLoadContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#if NETCOREAPP
5+
#if NET6_0_OR_GREATER
66

77
using System;
88
using System.Reflection;

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ internal ApplicationIntent ConvertValueToApplicationIntent()
10241024
// ArgumentException and other types are raised as is (no wrapping)
10251025
}
10261026

1027-
#if NETCOREAPP
1027+
#if NET6_0_OR_GREATER
10281028
internal void ThrowUnsupportedIfKeywordSet(string keyword)
10291029
{
10301030
if (ContainsKey(keyword))

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlInternalConnection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ internal abstract class SqlInternalConnection : DbConnectionInternal
2727
private bool _isGlobalTransactionEnabledForServer; // Whether Global Transactions are enabled for this Azure SQL DB Server
2828
private static readonly Guid s_globalTransactionTMID = new("1c742caf-6680-40ea-9c26-6b6846079764"); // ID of the Non-MSDTC, Azure SQL DB Transaction Manager
2929

30-
#if NETCOREAPP
30+
#if NET6_0_OR_GREATER
3131
internal SqlCommand.ExecuteReaderAsyncCallContext CachedCommandExecuteReaderAsyncContext;
3232
internal SqlCommand.ExecuteNonQueryAsyncCallContext CachedCommandExecuteNonQueryAsyncContext;
3333
internal SqlCommand.ExecuteXmlReaderAsyncCallContext CachedCommandExecuteXmlReaderAsyncContext;

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/DataReaderTest/DataReaderStreamsTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public static void InvalidCastExceptionStream(CommandBehavior behavior, Accessor
472472
}
473473
}
474474

475-
#if NETCOREAPP
475+
#if NET6_0_OR_GREATER
476476
[ConditionalFact(typeof(DataTestUtility),nameof(DataTestUtility.AreConnStringsSetup), nameof(DataTestUtility.IsNotAzureSynapse))]
477477
public static async void ReadAsyncContentsCompletes()
478478
{

0 commit comments

Comments
 (0)