From d1e0dd34d5d3348f2c4332281a48c1562dfd0606 Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Fri, 22 Mar 2024 13:22:47 -0500 Subject: [PATCH 1/8] Wrap files in appropriate `#if` and simplify project file --- .../Windows/Kernel32/Interop.CloseHandle.cs | 4 + .../src/Interop/Unix/Interop.Libraries.cs | 4 + .../Interop.GssApiException.cs | 6 +- .../Interop.GssBuffer.cs | 6 +- .../Interop.NetSecurityNative.cs | 5 +- .../Windows/Crypt32/Interop.certificates.cs | 4 + .../Crypt32/Interop.certificates_types.cs | 4 + .../SChannel/Interop.SECURITY_STATUS.cs | 4 + .../SChannel/SecPkgContext_ConnectionInfo.cs | 5 +- .../src/Interop/Windows/sspicli/GlobalSSPI.cs | 4 + .../Interop/Windows/sspicli/Interop.SSPI.cs | 4 + .../Windows/sspicli/NegotiationInfoClass.cs | 4 + .../Interop/Windows/sspicli/SSPIAuthType.cs | 4 + .../Interop/Windows/sspicli/SSPIInterface.cs | 4 + .../Windows/sspicli/SSPISecureChannelType.cs | 4 + .../Interop/Windows/sspicli/SSPIWrapper.cs | 4 + .../Windows/sspicli/SafeDeleteContext.cs | 6 +- .../Windows/sspicli/SecPkgContext_Bindings.cs | 4 + .../sspicli/SecPkgContext_NegotiationInfoW.cs | 4 + .../Windows/sspicli/SecPkgContext_Sizes.cs | 5 +- .../sspicli/SecPkgContext_StreamSizes.cs | 5 +- .../Windows/sspicli/SecurityPackageInfo.cs | 4 + .../sspicli/SecurityPackageInfoClass.cs | 4 + .../Windows/sspicli/SecuritySafeHandles.cs | 5 +- .../Win32/SafeHandles/GssSafeHandles.cs | 4 + .../Generic/BidirectionalDictionary.cs | 4 + .../System/Net/ContextFlagsAdapterPal.Unix.cs | 4 +- .../Net/ContextFlagsAdapterPal.Windows.cs | 4 +- .../Common/src/System/Net/ContextFlagsPal.cs | 4 +- .../DebugCriticalHandleMinusOneIsInvalid.cs | 6 +- ...ugCriticalHandleZeroOrMinusOneIsInvalid.cs | 6 +- .../Common/src/System/Net/DebugSafeHandle.cs | 7 +- .../System/Net/Logging/DebugThreadTracking.cs | 4 + .../src/System/Net/NegotiationInfoClass.cs | 4 + .../Net/Security/NegotiateStreamPal.Unix.cs | 4 + .../Security/NegotiateStreamPal.Windows.cs | 4 + .../NetEventSource.Security.Windows.cs | 4 + .../Net/Security/NetEventSource.Security.cs | 8 +- .../src/System/Net/Security/SecurityBuffer.cs | 5 +- .../System/Net/Security/SecurityBufferType.cs | 4 + .../Security/SecurityContextTokenHandle.cs | 5 +- .../Net/Security/Unix/SafeDeleteContext.cs | 4 + .../Security/Unix/SafeDeleteNegoContext.cs | 4 + .../Net/Security/Unix/SafeFreeCredentials.cs | 4 + .../Security/Unix/SafeFreeNegoCredentials.cs | 4 + .../Net/SecurityStatusAdapterPal.Windows.cs | 4 + .../src/System/Net/SecurityStatusPal.cs | 4 + .../src/Microsoft.Data.SqlClient.csproj | 249 ++++++++---------- .../DbConnectionPool.NetCoreApp.cs | 7 +- ...waysEncryptedKeyConverter.CrossPlatform.cs | 4 + .../Data/SqlClient/SNI/SNIStreams.Task.cs | 4 + .../SqlClient/SNI/SNIStreams.ValueTask.cs | 4 + .../SNI/SslOverTdsStream.NetCoreApp.cs | 4 + .../SNI/SslOverTdsStream.NetStandard.cs | 4 + .../SqlClient/SNI/SspiClientContextStatus.cs | 4 + ...uthenticationProviderManager.NetCoreApp.cs | 4 + ...thenticationProviderManager.NetStandard.cs | 4 + .../SqlClientEventSource.NetCoreApp.cs | 4 + ...umnEncryptionEnclaveProvider.NetCoreApp.cs | 4 + ...qlConnectionFactory.AssemblyLoadContext.cs | 6 +- .../SqlDelegatedTransaction.NetCoreApp.cs | 6 +- .../SqlDelegatedTransaction.NetStandard.cs | 6 +- .../Data/SqlClient/TdsParser.NetCoreApp.cs | 4 + .../Data/SqlClient/TdsParser.NetStandard.cs | 4 + .../AlwaysEncryptedEnclaveProviderUtils.cs | 4 + .../AzureAttestationBasedEnclaveProvider.cs | 4 + .../Data/SqlClient/EnclaveDelegate.Crypto.cs | 4 + .../SqlClient/EnclaveDelegate.NotSupported.cs | 5 +- .../Data/SqlClient/EnclaveProviderBase.cs | 4 + .../Data/SqlClient/EnclaveSessionCache.cs | 9 +- .../NoneAttestationEnclaveProvider.cs | 4 + .../SqlDependencyUtils.AssemblyLoadContext.cs | 4 + .../SqlEnclaveAttestationParameters.Crypto.cs | 4 + ...claveAttestationParameters.NotSupported.cs | 4 + .../VirtualSecureModeEnclaveProvider.cs | 4 + .../VirtualSecureModeEnclaveProviderBase.cs | 4 + 76 files changed, 419 insertions(+), 169 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/CoreLib/Interop/Windows/Kernel32/Interop.CloseHandle.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/CoreLib/Interop/Windows/Kernel32/Interop.CloseHandle.cs index ff41f939f1..f133f10156 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/CoreLib/Interop/Windows/Kernel32/Interop.CloseHandle.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/CoreLib/Interop/Windows/Kernel32/Interop.CloseHandle.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System; using System.Runtime.InteropServices; @@ -13,3 +15,5 @@ internal partial class Kernel32 internal static extern bool CloseHandle(IntPtr handle); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/Interop.Libraries.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/Interop.Libraries.cs index c4f2f36493..7b74001a4f 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/Interop.Libraries.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/Interop.Libraries.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + internal static partial class Interop { internal static partial class Libraries @@ -10,3 +12,5 @@ internal static partial class Libraries internal const string NetSecurityNative = "System.Net.Security.Native"; } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssApiException.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssApiException.cs index b08b41aeb2..34bc0b18dd 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssApiException.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssApiException.cs @@ -2,9 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Data; +#if !NET8_0_OR_GREATER + using System; using System.Runtime.InteropServices; +using Microsoft.Data; internal static partial class Interop { @@ -56,3 +58,5 @@ private static string GetGssApiDisplayStatus(Status status, bool isMinor) } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssBuffer.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssBuffer.cs index 0f479a8c62..112289bc7d 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssBuffer.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssBuffer.cs @@ -2,10 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Data; +#if !NET8_0_OR_GREATER + using System; using System.Diagnostics; using System.Runtime.InteropServices; +using Microsoft.Data; internal static partial class Interop { @@ -74,3 +76,5 @@ static GssBuffer() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.NetSecurityNative.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.NetSecurityNative.cs index 489d1cf8a9..f5e7d18f24 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.NetSecurityNative.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.NetSecurityNative.cs @@ -2,8 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System; -using System.Diagnostics; using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; @@ -126,3 +127,5 @@ static NetSecurityNative() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates.cs index 2fb8e48a1d..6b8e616894 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System; using System.Runtime.InteropServices; @@ -24,3 +26,5 @@ internal static partial class Crypt32 [In, Out] ref CERT_CHAIN_POLICY_STATUS pPolicyStatus); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates_types.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates_types.cs index cbf5c3309e..c120f1ba71 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates_types.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/Crypt32/Interop.certificates_types.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System; using System.Runtime.InteropServices; @@ -125,3 +127,5 @@ internal unsafe struct CERT_CHAIN_POLICY_STATUS } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs index 435de74c59..dfd98621d6 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + internal static partial class Interop { internal enum SECURITY_STATUS @@ -358,3 +360,5 @@ internal static string MapSecurityStatus(uint statusCode) } #endif // TRACE_VERBOSE } + +#endif // !NET8_OR_GREATER diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/SecPkgContext_ConnectionInfo.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/SecPkgContext_ConnectionInfo.cs index 57b6eb3405..762c3ea146 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/SecPkgContext_ConnectionInfo.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/SChannel/SecPkgContext_ConnectionInfo.cs @@ -2,7 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Diagnostics; +#if !NET8_0_OR_GREATER + using System.Runtime.InteropServices; namespace System.Net @@ -45,3 +46,5 @@ internal unsafe SecPkgContext_ConnectionInfo(byte[] nativeBuffer) } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/GlobalSSPI.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/GlobalSSPI.cs index 78571c5c96..6077ba5a77 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/GlobalSSPI.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/GlobalSSPI.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + namespace System.Net { internal static class GlobalSSPI @@ -10,3 +12,5 @@ internal static class GlobalSSPI internal static readonly SSPIInterface SSPISecureChannel = new SSPISecureChannelType(); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/Interop.SSPI.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/Interop.SSPI.cs index 8ceed0e870..bb8d1ede6a 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/Interop.SSPI.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/Interop.SSPI.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System; using System.Net.Security; using System.Runtime.InteropServices; @@ -388,3 +390,5 @@ public SecBufferDesc(int count) [Out] out SafeSspiAuthDataHandle authData); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/NegotiationInfoClass.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/NegotiationInfoClass.cs index f5f7ab1b07..133c935174 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/NegotiationInfoClass.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/NegotiationInfoClass.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Runtime.InteropServices; namespace System.Net @@ -59,3 +61,5 @@ internal NegotiationInfoClass(SafeHandle safeHandle, int negotiationState) } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIAuthType.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIAuthType.cs index cdb3819605..4a86701ffd 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIAuthType.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIAuthType.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Net.Security; using System.Runtime.InteropServices; using Microsoft.Data; @@ -199,3 +201,5 @@ public int ApplyControlToken(ref SafeDeleteContext refContext, SecurityBuffer[] } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIInterface.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIInterface.cs index 655dcec07a..22e9a3c93d 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIInterface.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIInterface.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Net.Security; using System.Runtime.InteropServices; @@ -30,3 +32,5 @@ internal interface SSPIInterface int ApplyControlToken(ref SafeDeleteContext refContext, SecurityBuffer[] inputBuffers); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPISecureChannelType.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPISecureChannelType.cs index 4152a89a7d..e6c213d241 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPISecureChannelType.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPISecureChannelType.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Net.Security; using System.Runtime.InteropServices; using Microsoft.Data; @@ -155,3 +157,5 @@ public int ApplyControlToken(ref SafeDeleteContext refContext, SecurityBuffer[] } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIWrapper.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIWrapper.cs index f8231f9069..389cd83df3 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIWrapper.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SSPIWrapper.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.ComponentModel; using System.Globalization; using System.Net.Security; @@ -595,3 +597,5 @@ public static string ErrorDescription(int errorCode) } } // class SSPIWrapper } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SafeDeleteContext.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SafeDeleteContext.cs index cc9f80164f..7701689286 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SafeDeleteContext.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SafeDeleteContext.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Win32.SafeHandles; +#if !NET8_0_OR_GREATER -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security.Authentication.ExtendedProtection; namespace System.Net.Security { @@ -53,3 +51,5 @@ public new IntPtr DangerousGetHandle() #endif } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Bindings.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Bindings.cs index eb31544de1..f5bbb448eb 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Bindings.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Bindings.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Runtime.InteropServices; namespace System.Net @@ -14,3 +16,5 @@ internal struct SecPkgContext_Bindings internal IntPtr Bindings; } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_NegotiationInfoW.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_NegotiationInfoW.cs index 4dc03b53a6..a5c71068eb 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_NegotiationInfoW.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_NegotiationInfoW.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Runtime.InteropServices; namespace System.Net @@ -14,3 +16,5 @@ internal struct SecPkgContext_NegotiationInfoW internal uint NegotiationState; } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Sizes.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Sizes.cs index 48cdd54d2a..17fce36c6d 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Sizes.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Sizes.cs @@ -2,7 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Diagnostics; +#if !NET8_0_OR_GREATER + using System.Runtime.InteropServices; namespace System.Net @@ -40,3 +41,5 @@ internal unsafe SecPkgContext_Sizes(byte[] memory) public static readonly int SizeOf = Marshal.SizeOf(); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_StreamSizes.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_StreamSizes.cs index 519b607da7..98ec1a1d60 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_StreamSizes.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecPkgContext_StreamSizes.cs @@ -2,7 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Diagnostics; +#if !NET8_0_OR_GREATER + using System.Runtime.InteropServices; namespace System.Net @@ -42,3 +43,5 @@ internal unsafe SecPkgContext_StreamSizes(byte[] memory) public static readonly int SizeOf = Marshal.SizeOf(); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfo.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfo.cs index 3ec3c7fda6..73e9c8635c 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfo.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfo.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Runtime.InteropServices; namespace System.Net @@ -18,3 +20,5 @@ internal struct SecurityPackageInfo internal IntPtr Comment; } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfoClass.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfoClass.cs index 74fca62e89..433904171e 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfoClass.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfoClass.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Globalization; using System.Runtime.InteropServices; @@ -76,3 +78,5 @@ public override string ToString() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecuritySafeHandles.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecuritySafeHandles.cs index f78b10697d..428e0e39eb 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecuritySafeHandles.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Interop/Windows/sspicli/SecuritySafeHandles.cs @@ -2,12 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Win32.SafeHandles; +#if !NET8_0_OR_GREATER using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using System.Security.Authentication.ExtendedProtection; +using Microsoft.Win32.SafeHandles; namespace System.Net.Security { @@ -1279,3 +1280,5 @@ protected override bool ReleaseHandle() } } } + +#endif // !NET8_OR_GREATER diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Win32/SafeHandles/GssSafeHandles.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Win32/SafeHandles/GssSafeHandles.cs index 6921ef6aba..6a5a8b17c8 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Win32/SafeHandles/GssSafeHandles.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Win32/SafeHandles/GssSafeHandles.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System; using System.Diagnostics; using System.Runtime.InteropServices; @@ -135,3 +137,5 @@ protected override bool ReleaseHandle() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Collections/Generic/BidirectionalDictionary.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Collections/Generic/BidirectionalDictionary.cs index 32c4463433..2bf8459e1b 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Collections/Generic/BidirectionalDictionary.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Collections/Generic/BidirectionalDictionary.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Diagnostics; namespace System.Collections.Generic @@ -59,3 +61,5 @@ IEnumerator IEnumerable.GetEnumerator() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsAdapterPal.Unix.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsAdapterPal.Unix.cs index 599bd4ab7d..148e0bb76d 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsAdapterPal.Unix.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsAdapterPal.Unix.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; +#if !NET8_0_OR_GREATER namespace System.Net { @@ -84,3 +84,5 @@ internal static Interop.NetSecurityNative.GssFlags GetInteropFromContextFlagsPal } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsAdapterPal.Windows.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsAdapterPal.Windows.cs index 5ed6e347d8..036f24d4ed 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsAdapterPal.Windows.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsAdapterPal.Windows.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; +#if !NET8_0_OR_GREATER namespace System.Net { @@ -75,3 +75,5 @@ internal static Interop.SspiCli.ContextFlags GetInteropFromContextFlagsPal(Conte } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsPal.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsPal.cs index d4df40b597..f0df3bd677 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsPal.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/ContextFlagsPal.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; +#if !NET8_0_OR_GREATER namespace System.Net { @@ -33,3 +33,5 @@ internal enum ContextFlagsPal UnverifiedTargetName = 0x20000000, } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugCriticalHandleMinusOneIsInvalid.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugCriticalHandleMinusOneIsInvalid.cs index 1949341de2..a9d0965324 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugCriticalHandleMinusOneIsInvalid.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugCriticalHandleMinusOneIsInvalid.cs @@ -2,11 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if DEBUG && !NET8_0_OR_GREATER + using Microsoft.Win32.SafeHandles; namespace System.Net { -#if DEBUG // // This is a helper class for debugging GC-ed handles that we define. // As a general rule normal code path should always destroy handles explicitly @@ -38,5 +39,6 @@ private void Trace() NetEventSource.Info(this, _trace); } } -#endif // DEBUG } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugCriticalHandleZeroOrMinusOneIsInvalid.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugCriticalHandleZeroOrMinusOneIsInvalid.cs index c28a7107b1..fcb485d568 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugCriticalHandleZeroOrMinusOneIsInvalid.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugCriticalHandleZeroOrMinusOneIsInvalid.cs @@ -2,11 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if DEBUG && !NET8_0_OR_GREATER + using Microsoft.Win32.SafeHandles; namespace System.Net { -#if DEBUG // // This is a helper class for debugging GC-ed handles that we define. // As a general rule normal code path should always destroy handles explicitly @@ -38,5 +39,6 @@ private void Trace() NetEventSource.Info(this, _trace); } } -#endif // DEBUG } + +#endif // !NET8_0_OR_GREATER diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugSafeHandle.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugSafeHandle.cs index b0646f92e9..55d5bd8a6f 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugSafeHandle.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/DebugSafeHandle.cs @@ -2,17 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Win32.SafeHandles; +#if DEBUG && !NET8_0_OR_GREATER using System.Net.NetworkInformation; using System.Net.Sockets; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; +using Microsoft.Win32.SafeHandles; namespace System.Net { -#if DEBUG // // This is a helper class for debugging GC-ed handles that we define. // As a general rule normal code path should always destroy handles explicitly @@ -47,5 +47,6 @@ private void Trace() NetEventSource.Info(this, _trace); } } -#endif // DEBUG } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Logging/DebugThreadTracking.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Logging/DebugThreadTracking.cs index 78d8d48ac6..cd66ff2287 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Logging/DebugThreadTracking.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Logging/DebugThreadTracking.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Collections.Generic; namespace System.Net @@ -162,3 +164,5 @@ internal enum ThreadKinds ThreadPool = CompletionPort | Worker, // Like Thread.CurrentThread.IsThreadPoolThread } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/NegotiationInfoClass.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/NegotiationInfoClass.cs index 560098ef4c..d931c7c70d 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/NegotiationInfoClass.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/NegotiationInfoClass.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + namespace System.Net { // This class is used to determine if NTLM or @@ -14,3 +16,5 @@ internal partial class NegotiationInfoClass internal const string Basic = "Basic"; } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs index 70c1a74377..f670a086cf 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.ComponentModel; using System.Diagnostics; using Microsoft.Win32.SafeHandles; @@ -246,3 +248,5 @@ internal static SafeFreeCredentials AcquireCredentialsHandle(string package, boo } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NegotiateStreamPal.Windows.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NegotiateStreamPal.Windows.cs index fe56d8ed91..2ce87ac951 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NegotiateStreamPal.Windows.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NegotiateStreamPal.Windows.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Globalization; using System.ComponentModel; using Microsoft.Data; @@ -215,3 +217,5 @@ internal static int MakeSignature(SafeDeleteContext securityContext, byte[] buff } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NetEventSource.Security.Windows.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NetEventSource.Security.Windows.cs index f229b6845a..e28cc18296 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NetEventSource.Security.Windows.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NetEventSource.Security.Windows.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Diagnostics.Tracing; using System.Net.Security; @@ -88,3 +90,5 @@ public void SecurityContextInputBuffers(string context, int inputBuffersSize, in } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NetEventSource.Security.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NetEventSource.Security.cs index b003ce8b7e..e785fe016d 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NetEventSource.Security.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/NetEventSource.Security.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Diagnostics.Tracing; -using System.Globalization; -using System.Net.Security; -using System.Security.Authentication; -using System.Security.Cryptography.X509Certificates; namespace System.Net { @@ -34,3 +32,5 @@ public void SspiPackageNotFound(string packageName) } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityBuffer.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityBuffer.cs index b507449f1e..54c060a6e1 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityBuffer.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityBuffer.cs @@ -2,7 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Diagnostics; +#if !NET8_0_OR_GREATER + using System.Runtime.InteropServices; using System.Security.Authentication.ExtendedProtection; @@ -61,3 +62,5 @@ public SecurityBuffer(ChannelBinding binding) } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityBufferType.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityBufferType.cs index 51174938a1..ca29feac84 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityBufferType.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityBufferType.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + namespace System.Net.Security { // sspi.h @@ -26,3 +28,5 @@ internal enum SecurityBufferType SECBUFFER_READONLY_WITH_CHECKSUM = 0x10000000 } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityContextTokenHandle.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityContextTokenHandle.cs index 00e5b3ac60..3d146e5bcc 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityContextTokenHandle.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/SecurityContextTokenHandle.cs @@ -2,9 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Win32.SafeHandles; +#if !NET8_0_OR_GREATER using System.Threading; +using Microsoft.Win32.SafeHandles; namespace System.Net.Security { @@ -39,3 +40,5 @@ protected override bool ReleaseHandle() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeDeleteContext.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeDeleteContext.cs index c3c75790b9..16636afd29 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeDeleteContext.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeDeleteContext.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Diagnostics; using System.Runtime.InteropServices; @@ -44,3 +46,5 @@ protected override bool ReleaseHandle() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeDeleteNegoContext.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeDeleteNegoContext.cs index b98e9ac80b..53fe8e5ad9 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeDeleteNegoContext.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeDeleteNegoContext.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Diagnostics; using Microsoft.Win32.SafeHandles; @@ -75,3 +77,5 @@ protected override void Dispose(bool disposing) } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeFreeCredentials.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeFreeCredentials.cs index 51d6869a8d..254d9d127a 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeFreeCredentials.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeFreeCredentials.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; @@ -71,3 +73,5 @@ protected override bool ReleaseHandle() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeFreeNegoCredentials.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeFreeNegoCredentials.cs index 217c787619..19ad2e2451 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeFreeNegoCredentials.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Security/Unix/SafeFreeNegoCredentials.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Diagnostics; using Microsoft.Win32.SafeHandles; @@ -84,3 +86,5 @@ protected override bool ReleaseHandle() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/SecurityStatusAdapterPal.Windows.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/SecurityStatusAdapterPal.Windows.cs index b7ce1e6b1e..c3b13d549f 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/SecurityStatusAdapterPal.Windows.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/SecurityStatusAdapterPal.Windows.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; @@ -101,3 +103,5 @@ internal static Interop.SECURITY_STATUS GetInteropFromSecurityStatusPal(Security } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/SecurityStatusPal.cs b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/SecurityStatusPal.cs index 54b380e74f..5bbe78bd00 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/SecurityStatusPal.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/SecurityStatusPal.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + namespace System.Net { internal readonly struct SecurityStatusPal @@ -71,3 +73,5 @@ internal enum SecurityStatusPalErrorCode ApplicationProtocolMismatch } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index eb15ff1e1a..4b184f973b 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -523,6 +523,8 @@ + + Microsoft\Data\SqlClient\EnclaveDelegate.NotSupported.cs @@ -530,15 +532,12 @@ Microsoft\Data\SqlClient\SqlEnclaveAttestationParameters.NotSupported.cs - - - - + Microsoft\Data\SqlClient\AlwaysEncryptedEnclaveProviderUtils.cs @@ -574,36 +573,13 @@ - - + Microsoft\Data\SqlClient\SqlDependencyUtils.AssemblyLoadContext.cs - - - - Resources\StringsHelper.cs - - - Resources\Strings.Designer.cs - True - True - Strings.resx - - - Resources\Strings.resx - Microsoft.Data.SqlClient.Resources.Strings.resources - ResXFileCodeGenerator - Strings.Designer.cs - System - - - Resources\%(RecursiveDir)%(Filename)%(Extension) - - - + Common\CoreLib\System\Threading\Tasks\TaskToApm.cs @@ -668,11 +644,44 @@ - - - + + + + Common\System\Net\InternalException.cs + + + Common\System\Net\Logging\NetEventSource.Common.cs + + + + Common\System\Net\ContextFlagsPal.cs + + + Common\System\Net\DebugCriticalHandleMinusOneIsInvalid.cs + + + Common\System\Net\DebugSafeHandle.cs + + + Common\System\Net\Logging\DebugThreadTracking.cs + + + Common\System\Net\NegotiationInfoClass.cs + + + Common\System\Net\Security\SecurityBuffer.cs + + + Common\System\Net\Security\SecurityBufferType.cs + + + Common\System\Net\SecurityStatusPal.cs + + + + @@ -690,22 +699,8 @@ Microsoft\Data\SqlClient\TdsParserSafeHandles.Windows.cs - - - - - Microsoft\Data\Common\AdapterUtil.Unix.cs - - - - - - - - - - - + + Common\CoreLib\Interop\Windows\kernel32\Interop.FileTypes.cs @@ -749,36 +744,9 @@ Common\Interop\Windows\NtDll\Interop.RtlNtStatusToDosError.cs - - - - - - - - - - - - - - - - - - Common\Interop\Windows\kernel32\Interop.LoadLibraryEx.cs - - - - - - - - - Common\CoreLib\Microsoft\Win32\SafeHandles\SafeLibraryHandle.cs @@ -789,36 +757,10 @@ Common\Interop\Windows\kernel32\Interop.GetProcAddress.cs - - - Common\Interop\Windows\Interop.Libraries.cs - - - - - Common\System\Net\InternalException.cs - - - Common\System\Net\Logging\NetEventSource.Common.cs - - - - - - - - - - - - - - - - + Common\CoreLib\Interop\Windows\Kernel32\Interop.CloseHandle.cs @@ -906,37 +848,31 @@ Common\Interop\Windows\sspicli\SSPIWrapper.cs + - - - - Common\System\Net\ContextFlagsPal.cs - - - Common\System\Net\DebugCriticalHandleMinusOneIsInvalid.cs - - - Common\System\Net\DebugSafeHandle.cs - - - Common\System\Net\Logging\DebugThreadTracking.cs - - - Common\System\Net\NegotiationInfoClass.cs - - - Common\System\Net\Security\SecurityBuffer.cs - - - Common\System\Net\Security\SecurityBufferType.cs - - - Common\System\Net\SecurityStatusPal.cs + + + + + Microsoft\Data\Common\AdapterUtil.Unix.cs - - - - + + + + + + + + + + + + + + + + + Common\Interop\Unix\Interop.Libraries.cs @@ -979,15 +915,60 @@ Microsoft\Data\SqlClient\SqlBatchCommand.Net8OrGreater.cs - - - + + + + + + + + + + + + + Common\Interop\Windows\kernel32\Interop.LoadLibraryEx.cs + + + + + + + + + + + + Resources\StringsHelper.cs + + + Resources\Strings.Designer.cs + True + True + Strings.resx + + + Resources\Strings.resx + Microsoft.Data.SqlClient.Resources.Strings.resources + ResXFileCodeGenerator + Strings.Designer.cs + System + + + Resources\%(RecursiveDir)%(Filename)%(Extension) + Microsoft.Data.SqlClient.SqlMetaData.xml + + + + + + diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.NetCoreApp.cs index c85d042b2a..9f330c3dcc 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.NetCoreApp.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.NetCoreApp.cs @@ -2,14 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; +#if NETCOREAPP + using System.Diagnostics; using Microsoft.Data.Common; using Microsoft.Data.SqlClient; namespace Microsoft.Data.ProviderBase { - sealed internal partial class DbConnectionPool + internal sealed partial class DbConnectionPool { private bool IsBlockingPeriodEnabled() { @@ -44,3 +45,5 @@ private bool IsBlockingPeriodEnabled() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedKeyConverter.CrossPlatform.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedKeyConverter.CrossPlatform.cs index 8b3def875c..81b90debeb 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedKeyConverter.CrossPlatform.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedKeyConverter.CrossPlatform.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Diagnostics; using System.Security.Cryptography; @@ -133,3 +135,5 @@ internal static RSA GetRSAFromCertificate(X509Certificate2 certificate) } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.Task.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.Task.cs index a1bf4a9e0e..399c43cb9b 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.Task.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.Task.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NETSTANDARD2_0 + using System.Threading; using System.Threading.Tasks; @@ -91,3 +93,5 @@ public override async Task WriteAsync(byte[] buffer, int offset, int count, Canc } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.ValueTask.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.ValueTask.cs index f5f38f0efe..03b071eac2 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.ValueTask.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.ValueTask.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System.Threading; using System.Threading.Tasks; using System; @@ -107,3 +109,5 @@ public override async ValueTask WriteAsync(ReadOnlyMemory buffer, Cancella } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetCoreApp.cs index be8d1a0160..655fc91d7c 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetCoreApp.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetCoreApp.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Buffers; using System.Threading; @@ -293,3 +295,5 @@ public override async ValueTask WriteAsync(ReadOnlyMemory buffer, Cancella } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetStandard.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetStandard.cs index 60bb597974..e411c2955e 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetStandard.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetStandard.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NETSTANDARD2_0 + using System; using System.Buffers; using System.IO; @@ -221,3 +223,5 @@ public override async Task WriteAsync(byte[] buffer, int offset, int count, Canc } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SspiClientContextStatus.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SspiClientContextStatus.cs index b557bfa0be..d9aabab16b 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SspiClientContextStatus.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SspiClientContextStatus.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NET8_0_OR_GREATER + using System.Net; using System.Net.Security; @@ -28,3 +30,5 @@ public ContextFlagsPal ContextFlags } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetCoreApp.cs index dd57c60da8..9170614927 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetCoreApp.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetCoreApp.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Collections.Concurrent; using System.Collections.Generic; @@ -195,3 +197,5 @@ internal class SqlClientAuthenticationProviderConfigurationSection : SqlAuthenti } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetStandard.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetStandard.cs index 01a84342f8..0fa64d0cef 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetStandard.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetStandard.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NETSTANDARD2_0 + namespace Microsoft.Data.SqlClient { internal partial class SqlAuthenticationProviderManager @@ -13,3 +15,5 @@ static SqlAuthenticationProviderManager() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientEventSource.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientEventSource.NetCoreApp.cs index c0312ca219..6dc531f766 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientEventSource.NetCoreApp.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientEventSource.NetCoreApp.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Diagnostics.Tracing; using System.Threading; @@ -394,3 +396,5 @@ internal override void ReclaimedConnectionRequest() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlColumnEncryptionEnclaveProvider.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlColumnEncryptionEnclaveProvider.NetCoreApp.cs index fd81db557d..da5a516004 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlColumnEncryptionEnclaveProvider.NetCoreApp.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlColumnEncryptionEnclaveProvider.NetCoreApp.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System.Security.Cryptography; namespace Microsoft.Data.SqlClient @@ -23,3 +25,5 @@ internal abstract partial class SqlColumnEncryptionEnclaveProvider out SqlEnclaveSession sqlEnclaveSession, out long counter); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnectionFactory.AssemblyLoadContext.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnectionFactory.AssemblyLoadContext.cs index 7338b8d4d2..38411594af 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnectionFactory.AssemblyLoadContext.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnectionFactory.AssemblyLoadContext.cs @@ -2,13 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NETCOREAPP + using System; using System.Reflection; using System.Runtime.Loader; namespace Microsoft.Data.SqlClient { - sealed internal partial class SqlConnectionFactory + internal sealed partial class SqlConnectionFactory { partial void SubscribeToAssemblyLoadContextUnload() { @@ -21,3 +23,5 @@ private void SqlConnectionFactoryAssemblyLoadContext_Unloading(AssemblyLoadConte } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetCoreApp.cs index c4655c4355..ea27ceabe0 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetCoreApp.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetCoreApp.cs @@ -2,15 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Transactions; namespace Microsoft.Data.SqlClient { - sealed internal partial class SqlDelegatedTransaction : IPromotableSinglePhaseNotification + internal sealed partial class SqlDelegatedTransaction : IPromotableSinglePhaseNotification { // Get the server-side Global Transaction Id from the PromotedDTCToken // Skip first 4 bytes since they contain the version private Guid GetGlobalTxnIdentifierFromToken() => new Guid(new ReadOnlySpan(_connection.PromotedDTCToken, _globalTransactionsTokenVersionSizeInBytes, 16)); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetStandard.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetStandard.cs index cb97c4d677..ba50ca5d14 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetStandard.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetStandard.cs @@ -2,12 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NETSTANDARD2_0 + using System; using System.Transactions; namespace Microsoft.Data.SqlClient { - sealed internal partial class SqlDelegatedTransaction : IPromotableSinglePhaseNotification + internal sealed partial class SqlDelegatedTransaction : IPromotableSinglePhaseNotification { // Get the server-side Global Transaction Id from the PromotedDTCToken // Skip first 4 bytes since they contain the version @@ -20,3 +22,5 @@ private Guid GetGlobalTxnIdentifierFromToken() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetCoreApp.cs index 95dd0d9731..2c7554a0cb 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetCoreApp.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetCoreApp.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Diagnostics; using System.Buffers.Binary; @@ -23,3 +25,5 @@ internal static Guid ConstructGuid(ReadOnlySpan bytes) } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetStandard.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetStandard.cs index 72c0b77b19..2327f92b72 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetStandard.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetStandard.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NETSTANDARD2_0 + using System; using System.Buffers; using System.Diagnostics; @@ -39,3 +41,5 @@ internal static Guid ConstructGuid(ReadOnlySpan bytes) } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.cs index ff84ab3310..890af0206f 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; namespace Microsoft.Data.SqlClient @@ -49,3 +51,5 @@ internal enum EnclaveType Sgx = 2 } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AzureAttestationBasedEnclaveProvider.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AzureAttestationBasedEnclaveProvider.cs index 7b1b2bf2e4..70f6bc5f91 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AzureAttestationBasedEnclaveProvider.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AzureAttestationBasedEnclaveProvider.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Collections.Generic; using System.Diagnostics; @@ -540,3 +542,5 @@ private byte[] GetSharedSecret(EnclavePublicKey enclavePublicKey, byte[] nonce, #endregion } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.Crypto.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.Crypto.cs index db1bdea90f..fc87127b04 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.Crypto.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.Crypto.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Collections.Concurrent; using System.Collections.Generic; @@ -211,3 +213,5 @@ internal byte[] GetSerializedAttestationParameters(SqlEnclaveAttestationParamete } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.NotSupported.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.NotSupported.cs index 461bfdf6d7..3c3afac335 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.NotSupported.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.NotSupported.cs @@ -2,9 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NETSTANDARD2_0 + using System; using System.Collections.Concurrent; -using System.Collections.Generic; namespace Microsoft.Data.SqlClient { @@ -54,3 +55,5 @@ internal SqlEnclaveAttestationParameters GetAttestationParameters(SqlConnectionA } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveProviderBase.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveProviderBase.cs index b8a52b9e4b..1a2bcaeb03 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveProviderBase.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveProviderBase.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Runtime.Caching; using System.Security.Cryptography; @@ -213,3 +215,5 @@ protected SqlEnclaveSession AddEnclaveSessionToCache(EnclaveSessionParameters en } #endregion } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveSessionCache.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveSessionCache.cs index f76191fec8..d60c3ad5ba 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveSessionCache.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveSessionCache.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Runtime.Caching; using System.Threading; @@ -12,7 +14,7 @@ namespace Microsoft.Data.SqlClient internal class EnclaveSessionCache { private readonly MemoryCache enclaveMemoryCache = new MemoryCache("EnclaveMemoryCache"); - private readonly Object enclaveCacheLock = new Object(); + private readonly object enclaveCacheLock = new object(); // Nonce for each message sent by the client to the server to prevent replay attacks by the server, // given that for Always Encrypted scenarios, the server is considered an "untrusted" man-in-the-middle. @@ -37,8 +39,7 @@ internal void InvalidateSession(EnclaveSessionParameters enclaveSessionParameter lock (enclaveCacheLock) { - long counter; - SqlEnclaveSession enclaveSession = GetEnclaveSession(enclaveSessionParameters, out counter); + SqlEnclaveSession enclaveSession = GetEnclaveSession(enclaveSessionParameters, out _); if (enclaveSession != null && enclaveSession.SessionId == enclaveSessionToInvalidate.SessionId) { @@ -73,3 +74,5 @@ private string GenerateCacheKey(EnclaveSessionParameters enclaveSessionParameter } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/NoneAttestationEnclaveProvider.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/NoneAttestationEnclaveProvider.cs index fabd69c976..9ef8a77d19 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/NoneAttestationEnclaveProvider.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/NoneAttestationEnclaveProvider.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Diagnostics; using System.Security.Cryptography; @@ -104,3 +106,5 @@ internal override void InvalidateEnclaveSession(EnclaveSessionParameters enclave } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDependencyUtils.AssemblyLoadContext.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDependencyUtils.AssemblyLoadContext.cs index 47f62fc5ac..c3f82f0047 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDependencyUtils.AssemblyLoadContext.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDependencyUtils.AssemblyLoadContext.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NETCOREAPP + using System; using System.Reflection; using System.Runtime.Loader; @@ -24,3 +26,5 @@ private void SqlDependencyPerAppDomainDispatcher_Unloading(AssemblyLoadContext o } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.Crypto.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.Crypto.cs index c2e9739237..2abb408d41 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.Crypto.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.Crypto.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Security.Cryptography; @@ -50,3 +52,5 @@ internal byte[] GetInput() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.NotSupported.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.NotSupported.cs index 0ae67d4a94..64d5d19655 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.NotSupported.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.NotSupported.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NETSTANDARD2_0 + namespace Microsoft.Data.SqlClient { /// @@ -17,3 +19,5 @@ internal byte[] GetInput() } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProvider.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProvider.cs index fd180d12d6..7ebad456f5 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProvider.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProvider.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Collections.Generic; using System.Diagnostics; @@ -468,3 +470,5 @@ public static byte[] TakeBytesAndAdvance(byte[] input, ref int offset, int count } } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs index eba8b856a2..d80f18c6b1 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if !NETSTANDARD2_0 + using System; using System.Runtime.Caching; using System.Security.Cryptography; @@ -413,3 +415,5 @@ private byte[] GetSharedSecret(EnclavePublicKey enclavePublicKey, EnclaveDiffieH #endregion } } + +#endif From b19f567519761724d4bb49a8fed0ddaf6178c06b Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Fri, 22 Mar 2024 14:31:22 -0500 Subject: [PATCH 2/8] Sorting file includes --- .../src/Microsoft.Data.SqlClient.csproj | 428 +++++++++--------- 1 file changed, 204 insertions(+), 224 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index 4b184f973b..4cfa26f829 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -30,6 +30,53 @@ + + Common\CoreLib\System\Threading\Tasks\TaskToApm.cs + + + Common\Microsoft\Data\ProviderBase\DbConnectionClosed.cs + + + Common\Microsoft\Data\ProviderBase\DbConnectionFactory.cs + + + Common\Microsoft\Data\ProviderBase\DbConnectionInternal.cs + + + Common\Microsoft\Data\ProviderBase\DbReferenceCollection.cs + + + Common\System\Net\ContextFlagsPal.cs + + + Common\System\Net\DebugCriticalHandleMinusOneIsInvalid.cs + + + Common\System\Net\DebugSafeHandle.cs + + + Common\System\Net\InternalException.cs + + + Common\System\Net\Logging\DebugThreadTracking.cs + + + Common\System\Net\Logging\NetEventSource.Common.cs + + + Common\System\Net\NegotiationInfoClass.cs + + + Common\System\Net\Security\SecurityBuffer.cs + + + Common\System\Net\Security\SecurityBufferType.cs + + + Common\System\Net\SecurityStatusPal.cs + + + Microsoft\Data\Common\ActivityCorrelator.cs @@ -105,12 +152,18 @@ Microsoft\Data\SqlClient\ActiveDirectoryAuthenticationTimeoutRetryHelper.cs + + Microsoft\Data\SqlClient\AlwaysEncryptedEnclaveProviderUtils.cs + Microsoft\Data\SqlClient\ApplicationIntent.cs Microsoft\Data\SqlClient\AssemblyRef.cs + + Microsoft\Data\SqlClient\AzureAttestationBasedEnclaveProvider.cs + Microsoft\Data\SqlClient\ColumnEncryptionKeyInfo.cs @@ -123,12 +176,27 @@ Microsoft\Data\SqlClient\EnclaveDelegate.cs + + Microsoft\Data\SqlClient\EnclaveDelegate.Crypto.cs + + + Microsoft\Data\SqlClient\EnclaveDelegate.NotSupported.cs + Microsoft\Data\SqlClient\EnclavePackage.cs + + Microsoft\Data\SqlClient\EnclaveProviderBase.cs + + + Microsoft\Data\SqlClient\EnclaveSessionCache.cs + Microsoft\Data\SqlClient\LocalAppContextSwitches.cs + + Microsoft\Data\SqlClient\NoneAttestationEnclaveProvider.cs + Microsoft\Data\SqlClient\OnChangedEventHandler.cs @@ -177,9 +245,6 @@ Microsoft\Data\SqlClient\RowsCopiedEventHandler.cs - - Microsoft\Data\SqlClient\SqlSequentialTextReader.cs - Microsoft\Data\SqlClient\Server\ExtendedClrTypeCode.cs @@ -246,9 +311,6 @@ Microsoft\Data\SqlClient\Server\SqlRecordBuffer.cs - - Microsoft\Data\SqlClient\SqlTransaction.Common.cs - Microsoft\Data\SqlClient\Server\ValueUtilsSmi.cs @@ -273,9 +335,6 @@ Microsoft\Data\SqlClient\SqlAuthenticationProvider.cs - - Microsoft\Data\SqlClient\SqlBuffer.cs - Microsoft\Data\SqlClient\SqlAuthenticationToken.cs @@ -288,6 +347,9 @@ Microsoft\Data\SqlClient\SqlBatchCommandCollection.cs + + Microsoft\Data\SqlClient\SqlBuffer.cs + Microsoft\Data\SqlClient\SqlBulkCopyColumnMapping.cs @@ -333,12 +395,12 @@ Microsoft\Data\SqlClient\SqlCollation.cs - - Microsoft\Data\SqlClient\SqlColumnEncryptionKeyStoreProvider.cs - Microsoft\Data\SqlClient\SqlCommandBuilder.cs + + Microsoft\Data\SqlClient\SqlColumnEncryptionKeyStoreProvider.cs + Microsoft\Data\SqlClient\SqlCommandSet.cs @@ -384,6 +446,15 @@ Microsoft\Data\SqlClient\SqlDependencyUtils.AppDomain.cs + + Microsoft\Data\SqlClient\SqlDependencyUtils.AssemblyLoadContext.cs + + + Microsoft\Data\SqlClient\SqlEnclaveAttestationParameters.Crypto.cs + + + Microsoft\Data\SqlClient\SqlEnclaveAttestationParameters.NotSupported.cs + Microsoft\Data\SqlClient\SqlEnclaveSession.cs @@ -465,12 +536,15 @@ Microsoft\Data\SqlClient\SqlSequentialStream.cs - - Microsoft\Data\SqlClient\Server\SqlSer.cs + + Microsoft\Data\SqlClient\SqlSequentialTextReader.cs Microsoft\Data\SqlClient\SqlStatistics.cs + + Microsoft\Data\SqlClient\SqlStream.cs + Microsoft\Data\SqlClient\SqlSymmetricKeyCache.cs @@ -480,6 +554,12 @@ Microsoft\Data\SqlClient\SqlUtil.cs + + Microsoft\Data\SqlClient\SqlTransaction.Common.cs + + + Microsoft\Data\SqlClient\Server\SqlSer.cs + Microsoft\Data\SqlClient\TdsEnums.cs @@ -501,16 +581,19 @@ Microsoft\Data\SqlClient\TdsValueSetter.cs + + Microsoft\Data\SqlClient\VirtualSecureModeEnclaveProvider.cs + + + Microsoft\Data\SqlClient\VirtualSecureModeEnclaveProviderBase.cs + Microsoft\Data\SQLTypes\SQLResource.cs Microsoft\Data\SqlTypes\SqlTypeWorkarounds.cs - - Microsoft\Data\SqlClient\SqlStream.cs - - + Resources\ResCategoryAttribute.cs @@ -519,96 +602,25 @@ Common\System\Diagnostics\CodeAnalysis.cs - - - - - - - - - Microsoft\Data\SqlClient\EnclaveDelegate.NotSupported.cs - - - Microsoft\Data\SqlClient\SqlEnclaveAttestationParameters.NotSupported.cs - - - - - - - - - Microsoft\Data\SqlClient\AlwaysEncryptedEnclaveProviderUtils.cs - - - Microsoft\Data\SqlClient\AzureAttestationBasedEnclaveProvider.cs - - - Microsoft\Data\SqlClient\EnclaveDelegate.Crypto.cs - - - Microsoft\Data\SqlClient\EnclaveProviderBase.cs - - - Microsoft\Data\SqlClient\EnclaveSessionCache.cs - - - Microsoft\Data\SqlClient\SqlEnclaveAttestationParameters.Crypto.cs - - - Microsoft\Data\SqlClient\VirtualSecureModeEnclaveProvider.cs - - - Microsoft\Data\SqlClient\NoneAttestationEnclaveProvider.cs - - - Microsoft\Data\SqlClient\VirtualSecureModeEnclaveProviderBase.cs - - - - - - - - - - - - Microsoft\Data\SqlClient\SqlDependencyUtils.AssemblyLoadContext.cs - - - + + - - Common\CoreLib\System\Threading\Tasks\TaskToApm.cs - - - Common\Microsoft\Data\ProviderBase\DbConnectionClosed.cs - - - Common\Microsoft\Data\ProviderBase\DbConnectionFactory.cs - - - Common\Microsoft\Data\ProviderBase\DbConnectionInternal.cs - - - Common\Microsoft\Data\ProviderBase\DbReferenceCollection.cs - - + + + @@ -618,16 +630,26 @@ + + - + + + + + + + + + @@ -635,87 +657,55 @@ + + + + - - - - Common\System\Net\InternalException.cs - - - Common\System\Net\Logging\NetEventSource.Common.cs - - - - Common\System\Net\ContextFlagsPal.cs - - - Common\System\Net\DebugCriticalHandleMinusOneIsInvalid.cs - - - Common\System\Net\DebugSafeHandle.cs - - - Common\System\Net\Logging\DebugThreadTracking.cs - - - Common\System\Net\NegotiationInfoClass.cs - - - Common\System\Net\Security\SecurityBuffer.cs - - - Common\System\Net\Security\SecurityBufferType.cs - - - Common\System\Net\SecurityStatusPal.cs - - - - Microsoft\Data\Common\AdapterUtil.Windows.cs - - - Microsoft\Data\Sql\SqlDataSourceEnumeratorNativeHelper.cs - - - Microsoft\Data\Sql\SqlDataSourceEnumerator.Windows.cs - - - - - - Microsoft\Data\SqlClient\TdsParserSafeHandles.Windows.cs - - - Common\CoreLib\Interop\Windows\kernel32\Interop.FileTypes.cs Common\CoreLib\Interop\Windows\kernel32\Interop.GetFileType_SafeHandle.cs + + Common\CoreLib\Interop\Windows\Kernel32\Interop.CloseHandle.cs + Common\CoreLib\Interop\Windows\kernel32\Interop.SetThreadErrorMode.cs + + Common\CoreLib\Microsoft\Win32\SafeHandles\SafeLibraryHandle.cs + Common\CoreLib\System\IO\PathInternal.Windows.cs + + Common\Interop\Windows\Crypt32\Interop.certificates.cs + + + Common\Interop\Windows\Crypt32\Interop.certificates_types.cs + Common\Interop\Windows\Interop.Errors.cs + + Common\Interop\Windows\Interop.Libraries.cs + Common\Interop\Windows\Interop.UNICODE_STRING.cs @@ -725,6 +715,12 @@ Common\Interop\Windows\Kernel32\Interop.DeviceIoControl.cs + + Common\Interop\Windows\kernel32\Interop.FreeLibrary.cs + + + Common\Interop\Windows\kernel32\Interop.GetProcAddress.cs + Common\Interop\Windows\Kernel32\Interop.IoControlCodeAccess.cs @@ -743,33 +739,6 @@ Common\Interop\Windows\NtDll\Interop.RtlNtStatusToDosError.cs - - - - - - Common\CoreLib\Microsoft\Win32\SafeHandles\SafeLibraryHandle.cs - - - Common\Interop\Windows\kernel32\Interop.FreeLibrary.cs - - - Common\Interop\Windows\kernel32\Interop.GetProcAddress.cs - - - - Common\Interop\Windows\Interop.Libraries.cs - - - - Common\CoreLib\Interop\Windows\Kernel32\Interop.CloseHandle.cs - - - Common\Interop\Windows\Crypt32\Interop.certificates.cs - - - Common\Interop\Windows\Crypt32\Interop.certificates_types.cs - Common\Interop\Windows\SChannel\Interop.SecPkgContext_ApplicationProtocol.cs @@ -779,30 +748,6 @@ Common\Interop\Windows\SChannel\SecPkgContext_ConnectionInfo.cs - - Common\System\Collections\Generic\BidirectionalDictionary.cs - - - Common\System\Net\ContextFlagsAdapterPal.Windows.cs - - - Common\System\Net\DebugCriticalHandleZeroOrMinusOneIsInvalid.cs - - - Common\System\Net\Security\SecurityContextTokenHandle.cs - - - Common\System\Net\SecurityStatusAdapterPal.Windows.cs - - - Common\System\Net\Security\NegotiateStreamPal.Windows.cs - - - Common\System\Net\Security\NetEventSource.Security.cs - - - Common\System\Net\Security\NetEventSource.Security.Windows.cs - Common\Interop\Windows\sspicli\GlobalSSPI.cs @@ -848,31 +793,56 @@ Common\Interop\Windows\sspicli\SSPIWrapper.cs + + Common\System\Collections\Generic\BidirectionalDictionary.cs + + + Common\System\Net\ContextFlagsAdapterPal.Windows.cs + + + Common\System\Net\DebugCriticalHandleZeroOrMinusOneIsInvalid.cs + + + Common\System\Net\Security\NegotiateStreamPal.Windows.cs + + + Common\System\Net\Security\NetEventSource.Security.cs + + + Common\System\Net\Security\NetEventSource.Security.Windows.cs + + + Common\System\Net\Security\SecurityContextTokenHandle.cs + + + Common\System\Net\SecurityStatusAdapterPal.Windows.cs + + + + Microsoft\Data\Common\AdapterUtil.Windows.cs + + + Microsoft\Data\Sql\SqlDataSourceEnumeratorNativeHelper.cs + + + Microsoft\Data\Sql\SqlDataSourceEnumerator.Windows.cs + + + Microsoft\Data\SqlClient\TdsParserSafeHandles.Windows.cs + + + + + + + + + - - Microsoft\Data\Common\AdapterUtil.Unix.cs - - - - - - - - - - - - - - - - - - Common\Interop\Unix\Interop.Libraries.cs @@ -906,14 +876,24 @@ Common\System\Net\Security\NegotiateStreamPal.Unix.cs - - - - - - - Microsoft\Data\SqlClient\SqlBatchCommand.Net8OrGreater.cs + + + Microsoft\Data\Common\AdapterUtil.Unix.cs + + + + + + + + + + + + + + From 8bd6438df92693e638e8faaa407c1a31caf420f9 Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Fri, 22 Mar 2024 17:44:42 -0500 Subject: [PATCH 3/8] Pulling over changes from a different branch from before rebase --- .../netcore/src/Microsoft.Data.SqlClient.csproj | 3 +++ .../Microsoft/Data/SqlClient/SqlClientFactory.NetCoreApp.cs | 4 ++++ .../Microsoft/Data/SqlClient/SqlBatchCommand.Net8OrGreater.cs | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index 4cfa26f829..6f667a0078 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -344,6 +344,9 @@ Microsoft\Data\SqlClient\SqlBatchCommand.cs + + Microsoft\Data\SqlClient\SqlBatchCommand.Net8OrGreater.cs + Microsoft\Data\SqlClient\SqlBatchCommandCollection.cs diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientFactory.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientFactory.NetCoreApp.cs index 4b0d4a8b2d..a48179b621 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientFactory.NetCoreApp.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientFactory.NetCoreApp.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NET6_0_OR_GREATER + using System.Data.Common; namespace Microsoft.Data.SqlClient @@ -18,3 +20,5 @@ public sealed partial class SqlClientFactory : DbProviderFactory public override DbBatchCommand CreateBatchCommand() => new SqlBatchCommand(); } } + +#endif diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBatchCommand.Net8OrGreater.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBatchCommand.Net8OrGreater.cs index d31480afc7..d81a378ecf 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBatchCommand.Net8OrGreater.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBatchCommand.Net8OrGreater.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if NET8_0_OR_GREATER + using System.Data.Common; namespace Microsoft.Data.SqlClient @@ -15,3 +17,5 @@ public partial class SqlBatchCommand public override bool CanCreateParameter => true; } } + +#endif From 4c580f6467558f1ea528568115ad6d1ace1ed71c Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Wed, 13 Mar 2024 12:15:33 -0500 Subject: [PATCH 4/8] Removing ref projects --- src/Microsoft.Data.SqlClient.sln | 36 - .../ref/Microsoft.Data.SqlClient.Manual.cs | 24 - .../Microsoft.Data.SqlClient.NetStandard.cs | 16 - .../netcore/ref/Microsoft.Data.SqlClient.cs | 2286 ---------------- .../ref/Microsoft.Data.SqlClient.csproj | 32 - .../src/Microsoft.Data.SqlClient.csproj | 1 + .../netfx/ref/Microsoft.Data.SqlClient.cs | 2392 ----------------- .../netfx/ref/Microsoft.Data.SqlClient.csproj | 21 - .../netfx/src/Microsoft.Data.SqlClient.csproj | 1 + 9 files changed, 2 insertions(+), 4807 deletions(-) delete mode 100644 src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.Manual.cs delete mode 100644 src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.NetStandard.cs delete mode 100644 src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs delete mode 100644 src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj delete mode 100644 src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs delete mode 100644 src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj diff --git a/src/Microsoft.Data.SqlClient.sln b/src/Microsoft.Data.SqlClient.sln index d47f0a450e..ba97d2e2c5 100644 --- a/src/Microsoft.Data.SqlClient.sln +++ b/src/Microsoft.Data.SqlClient.sln @@ -49,14 +49,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Utf8String", "Microsoft.Dat {37431336-5307-4184-9356-C4B7E47DC714} = {37431336-5307-4184-9356-C4B7E47DC714} EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ref", "ref", "{A2E7E470-5EFF-4828-B55E-FCBA3650F51C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Data.SqlClient", "Microsoft.Data.SqlClient\netcore\ref\Microsoft.Data.SqlClient.csproj", "{1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ref", "ref", "{771F3F1E-7A68-4A9D-ADA8-A24F1D5BE71D}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Data.SqlClient", "Microsoft.Data.SqlClient\netfx\ref\Microsoft.Data.SqlClient.csproj", "{412BCCC8-19F6-489A-B594-E9A506816155}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider", "Microsoft.Data.SqlClient\add-ons\AzureKeyVaultProvider\Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj", "{9073ABEF-92E0-4702-BB23-2C99CEF9BDD7}" ProjectSection(ProjectDependencies) = postProject {37431336-5307-4184-9356-C4B7E47DC714} = {37431336-5307-4184-9356-C4B7E47DC714} @@ -364,30 +356,6 @@ Global {E0A6BB21-574B-43D9-890D-6E1144F2EE9E}.Release|x64.Build.0 = Release|Any CPU {E0A6BB21-574B-43D9-890D-6E1144F2EE9E}.Release|x86.ActiveCfg = Release|Any CPU {E0A6BB21-574B-43D9-890D-6E1144F2EE9E}.Release|x86.Build.0 = Release|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Debug|x64.ActiveCfg = Debug|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Debug|x64.Build.0 = Debug|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Debug|x86.ActiveCfg = Debug|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Debug|x86.Build.0 = Debug|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Release|Any CPU.Build.0 = Release|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Release|x64.ActiveCfg = Release|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Release|x64.Build.0 = Release|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Release|x86.ActiveCfg = Release|Any CPU - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B}.Release|x86.Build.0 = Release|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Debug|Any CPU.Build.0 = Debug|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Debug|x64.ActiveCfg = Debug|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Debug|x64.Build.0 = Debug|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Debug|x86.ActiveCfg = Debug|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Debug|x86.Build.0 = Debug|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Release|Any CPU.ActiveCfg = Release|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Release|Any CPU.Build.0 = Release|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Release|x64.ActiveCfg = Release|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Release|x64.Build.0 = Release|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Release|x86.ActiveCfg = Release|Any CPU - {412BCCC8-19F6-489A-B594-E9A506816155}.Release|x86.Build.0 = Release|Any CPU {9073ABEF-92E0-4702-BB23-2C99CEF9BDD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9073ABEF-92E0-4702-BB23-2C99CEF9BDD7}.Debug|Any CPU.Build.0 = Debug|Any CPU {9073ABEF-92E0-4702-BB23-2C99CEF9BDD7}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -506,10 +474,6 @@ Global {D2D1E2D1-B6E0-489F-A36D-1F3047AB87B9} = {0CC4817A-12F3-4357-912C-09315FAAD008} {37431336-5307-4184-9356-C4B7E47DC714} = {28E5EFE6-C9DD-4FF9-9FEC-532F72DFFA6E} {45DB5F86-7AE3-45C6-870D-F9357B66BDB5} = {0CC4817A-12F3-4357-912C-09315FAAD008} - {A2E7E470-5EFF-4828-B55E-FCBA3650F51C} = {28E5EFE6-C9DD-4FF9-9FEC-532F72DFFA6E} - {1C9FC4B8-54BC-4B6C-BB3A-F5CD59D80A9B} = {A2E7E470-5EFF-4828-B55E-FCBA3650F51C} - {771F3F1E-7A68-4A9D-ADA8-A24F1D5BE71D} = {3FDD425C-FE01-4B56-863E-1FCDD0677CF5} - {412BCCC8-19F6-489A-B594-E9A506816155} = {771F3F1E-7A68-4A9D-ADA8-A24F1D5BE71D} {9073ABEF-92E0-4702-BB23-2C99CEF9BDD7} = {C9726AED-D6A3-4AAC-BA04-92DD1F079594} {71F356DC-DFA3-4163-8BFE-D268722CE189} = {ED952CF7-84DF-437A-B066-F516E9BE1C2C} {908C7DD3-C999-40A6-9433-9F5ACA7C36F5} = {71F356DC-DFA3-4163-8BFE-D268722CE189} diff --git a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.Manual.cs b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.Manual.cs deleted file mode 100644 index e5e5d6ab8e..0000000000 --- a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.Manual.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace Microsoft.Data.SqlClient -{ - public sealed partial class SqlCommand : System.Data.Common.DbCommand - { - // SqlCommand expects IDisposable methods to be implemented via System.ComponentModel.Component, which it no longer inherits from - /// - override protected void Dispose(bool disposing) { } - } - public sealed partial class SqlConnection : System.Data.Common.DbConnection - { - // SqlConnection expects IDisposable methods to be implemented via System.ComponentModel.Component, which it no longer inherits from - /// - override protected void Dispose(bool disposing) { } - } - [System.ComponentModel.TypeConverter(typeof(SqlParameterConverter))] - public sealed partial class SqlParameter - { - internal class SqlParameterConverter { } - } -} diff --git a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.NetStandard.cs b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.NetStandard.cs deleted file mode 100644 index bdb2042b84..0000000000 --- a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.NetStandard.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -// ------------------------------------------------------------------------------ -// Changes to this file must follow the http://aka.ms/api-review process. -// ------------------------------------------------------------------------------ - -namespace Microsoft.Data.SqlClient -{ - /// - public sealed partial class ActiveDirectoryAuthenticationProvider : SqlAuthenticationProvider - { - /// - public void SetParentActivityOrWindowFunc(System.Func parentActivityOrWindowFunc) { } - } -} diff --git a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs deleted file mode 100644 index ba7a1cd534..0000000000 --- a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs +++ /dev/null @@ -1,2286 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -// NOTE: The current Microsoft.VSDesigner editor attributes are implemented for System.Data.SqlClient, and are not publicly available. -// New attributes that are designed to work with Microsoft.Data.SqlClient and are publicly documented should be included in future. - -[assembly: System.CLSCompliant(true)] -namespace Microsoft.Data -{ - /// - public sealed partial class OperationAbortedException : System.SystemException - { - internal OperationAbortedException() { } - } -} -namespace Microsoft.Data.Sql -{ - /// - public sealed partial class SqlNotificationRequest - { - /// - public SqlNotificationRequest() { } - /// - public SqlNotificationRequest(string userData, string options, int timeout) { } - /// - public string Options { get { throw null; } set { } } - /// - public int Timeout { get { throw null; } set { } } - /// - public string UserData { get { throw null; } set { } } - } - - /// - public sealed class SqlDataSourceEnumerator : System.Data.Common.DbDataSourceEnumerator - { - /// - public static SqlDataSourceEnumerator Instance { get; } - /// - public override System.Data.DataTable GetDataSources() { throw null; } - } -} -namespace Microsoft.Data.SqlTypes -{ - /// - public sealed partial class SqlFileStream : System.IO.Stream - { - /// - public SqlFileStream(string path, byte[] transactionContext, System.IO.FileAccess access) { } - /// - public SqlFileStream(string path, byte[] transactionContext, System.IO.FileAccess access, System.IO.FileOptions options, System.Int64 allocationSize) { } - /// - public string Name { get { throw null; } } - /// - public byte[] TransactionContext { get { throw null; } } - /// - public override bool CanRead { get { throw null; } } - /// - public override bool CanSeek { get { throw null; } } - /// - public override bool CanTimeout { get { throw null; } } - /// - public override bool CanWrite { get { throw null; } } - /// - public override long Length { get { throw null; } } - /// - public override long Position { get { throw null; } set { throw null; } } - /// - public override int ReadTimeout { get { throw null; } } - /// - public override int WriteTimeout { get { throw null; } } - /// - public override void Flush() { } - /// - public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; } - /// - public override int EndRead(System.IAsyncResult asyncResult) { throw null; } - /// - public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback callback, System.Object state) { throw null; } - /// - public override void EndWrite(System.IAsyncResult asyncResult) { } - /// - public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } - /// - public override void SetLength(long value) { throw null; } - /// - public override int Read(byte[] buffer, int offset, int count) { throw null; } - /// - public override int ReadByte() { throw null; } - /// - public override void Write(byte[] buffer, int offset, int count) { throw null; } - /// - public override void WriteByte(byte value) { } - } -} -namespace Microsoft.Data.SqlClient -{ - /// - public sealed partial class ActiveDirectoryAuthenticationProvider : SqlAuthenticationProvider - { - /// - public ActiveDirectoryAuthenticationProvider() { } - /// - public ActiveDirectoryAuthenticationProvider(string applicationClientId) { } - /// - public static void ClearUserTokenCache() { } - /// - public ActiveDirectoryAuthenticationProvider(System.Func deviceCodeFlowCallbackMethod, string applicationClientId = null) { } - /// - public override System.Threading.Tasks.Task AcquireTokenAsync(SqlAuthenticationParameters parameters) { throw null; } - /// - public void SetDeviceCodeFlowCallback(System.Func deviceCodeFlowCallbackMethod) { } - /// - public void SetAcquireAuthorizationCodeAsyncCallback(System.Func> acquireAuthorizationCodeAsyncCallback) { } - /// - public override bool IsSupported(SqlAuthenticationMethod authentication) { throw null; } - /// - public override void BeforeLoad(SqlAuthenticationMethod authentication) { } - /// - public override void BeforeUnload(SqlAuthenticationMethod authentication) { } - } - /// - public enum ApplicationIntent - { - /// - ReadOnly = 1, - /// - ReadWrite = 0 - } - /// - public enum PoolBlockingPeriod - { - /// - Auto = 0, - /// - AlwaysBlock = 1, - /// - NeverBlock = 2, - } - /// - public delegate void OnChangeEventHandler(object sender, Microsoft.Data.SqlClient.SqlNotificationEventArgs e); - /// - public enum SortOrder - { - /// - Unspecified = -1, - /// - Ascending = 0, - /// - Descending = 1 - } - /// - public abstract partial class SqlAuthenticationInitializer - { - /// - protected SqlAuthenticationInitializer() { } - /// - public abstract void Initialize(); - } - /// - public enum SqlAuthenticationMethod - { - /// - NotSpecified = 0, - /// - SqlPassword = 1, - /// - ActiveDirectoryPassword = 2, - /// - ActiveDirectoryIntegrated = 3, - /// - ActiveDirectoryInteractive = 4, - /// - ActiveDirectoryServicePrincipal = 5, - /// - ActiveDirectoryDeviceCodeFlow = 6, - /// - ActiveDirectoryManagedIdentity = 7, - /// - ActiveDirectoryMSI = 8, - /// - ActiveDirectoryDefault = 9, - /// - ActiveDirectoryWorkloadIdentity = 10 - } - /// - public class SqlAuthenticationParameters - { - /// - protected SqlAuthenticationParameters(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, string serverName, string databaseName, string resource, string authority, string userId, string password, System.Guid connectionId, int connectionTimeout) { } - /// - public Microsoft.Data.SqlClient.SqlAuthenticationMethod AuthenticationMethod { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Authority { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public System.Guid ConnectionId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string DatabaseName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Password { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Resource { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string ServerName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string UserId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public int ConnectionTimeout { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public abstract partial class SqlAuthenticationProvider - { - /// - protected SqlAuthenticationProvider() { } - /// - public abstract System.Threading.Tasks.Task AcquireTokenAsync(Microsoft.Data.SqlClient.SqlAuthenticationParameters parameters); - /// - public virtual void BeforeLoad(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod) { } - /// - public virtual void BeforeUnload(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod) { } - /// - public static Microsoft.Data.SqlClient.SqlAuthenticationProvider GetProvider(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod) { throw null; } - /// - public abstract bool IsSupported(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod); - /// - public static bool SetProvider(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, Microsoft.Data.SqlClient.SqlAuthenticationProvider provider) { throw null; } - } - /// - public partial class SqlAuthenticationToken - { - /// - public SqlAuthenticationToken(string accessToken, System.DateTimeOffset expiresOn) { } - /// - public string AccessToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public System.DateTimeOffset ExpiresOn { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public sealed partial class SqlBulkCopy : System.IDisposable - { - /// - public SqlBulkCopy(Microsoft.Data.SqlClient.SqlConnection connection) { } - /// - public SqlBulkCopy(Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlBulkCopyOptions copyOptions, Microsoft.Data.SqlClient.SqlTransaction externalTransaction) { } - /// - public SqlBulkCopy(string connectionString) { } - /// - public SqlBulkCopy(string connectionString, Microsoft.Data.SqlClient.SqlBulkCopyOptions copyOptions) { } - /// - public int BatchSize { get { throw null; } set { } } - /// - public int BulkCopyTimeout { get { throw null; } set { } } - /// - public bool EnableStreaming { get { throw null; } set { } } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection ColumnMappings { get { throw null; } } - /// - public SqlBulkCopyColumnOrderHintCollection ColumnOrderHints { get { throw null; } } - /// - public string DestinationTableName { get { throw null; } set { } } - /// - public int NotifyAfter { get { throw null; } set { } } - /// - public int RowsCopied { get { throw null; } } - /// - public long RowsCopied64 { get { throw null; } } - /// - public event Microsoft.Data.SqlClient.SqlRowsCopiedEventHandler SqlRowsCopied { add { } remove { } } - /// - public void Close() { } - /// - void System.IDisposable.Dispose() { } - /// - public void WriteToServer(System.Data.Common.DbDataReader reader) { } - /// - public void WriteToServer(System.Data.DataTable table) { } - /// - public void WriteToServer(System.Data.DataTable table, System.Data.DataRowState rowState) { } - /// - public void WriteToServer(System.Data.DataRow[] rows) { } - /// - public void WriteToServer(System.Data.IDataReader reader) { } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.Common.DbDataReader reader) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.Common.DbDataReader reader, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataRow[] rows) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataRow[] rows, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataTable table) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataTable table, System.Data.DataRowState rowState) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataTable table, System.Data.DataRowState rowState, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataTable table, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.IDataReader reader) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.IDataReader reader, System.Threading.CancellationToken cancellationToken) { throw null; } - } - /// - public sealed partial class SqlBulkCopyColumnMapping - { - /// - public SqlBulkCopyColumnMapping() { } - /// - public SqlBulkCopyColumnMapping(int sourceColumnOrdinal, int destinationOrdinal) { } - /// - public SqlBulkCopyColumnMapping(int sourceColumnOrdinal, string destinationColumn) { } - /// - public SqlBulkCopyColumnMapping(string sourceColumn, int destinationOrdinal) { } - /// - public SqlBulkCopyColumnMapping(string sourceColumn, string destinationColumn) { } - /// - public string DestinationColumn { get { throw null; } set { } } - /// - public int DestinationOrdinal { get { throw null; } set { } } - /// - public string SourceColumn { get { throw null; } set { } } - /// - public int SourceOrdinal { get { throw null; } set { } } - } - /// - public sealed partial class SqlBulkCopyColumnMappingCollection : System.Collections.CollectionBase - { - internal SqlBulkCopyColumnMappingCollection() { } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping this[int index] { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping bulkCopyColumnMapping) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(int sourceColumnIndex, int destinationColumnIndex) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(int sourceColumnIndex, string destinationColumn) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(string sourceColumn, int destinationColumnIndex) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(string sourceColumn, string destinationColumn) { throw null; } - /// - public new void Clear() { } - /// - public bool Contains(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping value) { throw null; } - /// - public void CopyTo(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping[] array, int index) { } - /// - public int IndexOf(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping value) { throw null; } - /// - public void Insert(int index, Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping value) { } - /// - public void Remove(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping value) { } - /// - public new void RemoveAt(int index) { } - } - /// - public sealed class SqlBulkCopyColumnOrderHint - { - /// - public SqlBulkCopyColumnOrderHint(string column, SortOrder sortOrder) { } - /// - public string Column { get { throw null; } set { } } - /// - public SortOrder SortOrder { get { throw null; } set { } } - } - /// - public sealed class SqlBulkCopyColumnOrderHintCollection : System.Collections.CollectionBase - { - /// - public SqlBulkCopyColumnOrderHint this[int index] { get { throw null; } } - /// - public SqlBulkCopyColumnOrderHint Add(SqlBulkCopyColumnOrderHint columnOrderHint) { throw null; } - /// - public SqlBulkCopyColumnOrderHint Add(string column, SortOrder sortOrder) { throw null; } - /// - public new void Clear() { } - /// - public bool Contains(SqlBulkCopyColumnOrderHint value) { throw null; } - /// - public void CopyTo(SqlBulkCopyColumnOrderHint[] array, int index) { } - /// - public int IndexOf(SqlBulkCopyColumnOrderHint value) { throw null; } - /// - public void Insert(int index, SqlBulkCopyColumnOrderHint columnOrderHint) { } - /// - public void Remove(SqlBulkCopyColumnOrderHint columnOrderHint) { } - /// - public new void RemoveAt(int index) { } - } - /// - [System.FlagsAttribute] - public enum SqlBulkCopyOptions - { - /// - AllowEncryptedValueModifications = 64, - /// - CheckConstraints = 2, - /// - Default = 0, - /// - FireTriggers = 16, - /// - KeepIdentity = 1, - /// - KeepNulls = 8, - /// - TableLock = 4, - /// - UseInternalTransaction = 32, - } - /// - public sealed partial class SqlClientFactory : System.Data.Common.DbProviderFactory - { - internal SqlClientFactory() { } - /// - public static readonly Microsoft.Data.SqlClient.SqlClientFactory Instance; - /// - public override System.Data.Common.DbCommand CreateCommand() { throw null; } - /// - public override System.Data.Common.DbCommandBuilder CreateCommandBuilder() { throw null; } - /// - public override System.Data.Common.DbConnection CreateConnection() { throw null; } - /// - public override System.Data.Common.DbConnectionStringBuilder CreateConnectionStringBuilder() { throw null; } - /// - public override System.Data.Common.DbDataAdapter CreateDataAdapter() { throw null; } - /// - public override System.Data.Common.DbParameter CreateParameter() { throw null; } - } - /// - public partial class SqlClientLogger - { - /// - public SqlClientLogger() { } - /// - public bool IsLoggingEnabled { get { throw null; } } - /// - public void LogWarning(string type, string method, string message) { } - /// - public bool LogAssert(bool value, string type, string method, string message) { throw null; } - /// - public void LogError(string type, string method, string message) { } - /// - public void LogInfo(string type, string method, string message) { } - } - /// - public static partial class SqlClientMetaDataCollectionNames - { - /// - public static readonly string Columns; - /// - public static readonly string Databases; - /// - public static readonly string ForeignKeys; - /// - public static readonly string IndexColumns; - /// - public static readonly string Indexes; - /// - public static readonly string ProcedureParameters; - /// - public static readonly string Procedures; - /// - public static readonly string Tables; - /// - public static readonly string UserDefinedTypes; - /// - public static readonly string Users; - /// - public static readonly string ViewColumns; - /// - public static readonly string Views; - /// - public static readonly string AllColumns; - /// - public static readonly string ColumnSetColumns; - /// - public static readonly string StructuredTypeMembers; - } -#if NETCOREAPP || NETSTANDARD2_1_OR_GREATER - /// - public enum SqlConnectionAttestationProtocol - { - /// - NotSpecified = 0, - - /// - AAS = 1, - - /// - None = 2, - - /// - HGS = 3 - } -#endif - /// - public enum SqlConnectionIPAddressPreference - { - /// - IPv4First = 0, // default - - /// - IPv6First = 1, - - /// - UsePlatformDefault = 2 - } - /// - public sealed class SqlConnectionEncryptOption - { - /// - public static SqlConnectionEncryptOption Parse(string value) => throw null; - /// - public static bool TryParse(string value, out SqlConnectionEncryptOption result) => throw null; - /// - public static SqlConnectionEncryptOption Optional => throw null; - - /// - public static SqlConnectionEncryptOption Mandatory => throw null; - - /// - public static SqlConnectionEncryptOption Strict => throw null; - - /// - public static implicit operator SqlConnectionEncryptOption(bool value) => throw null; - - /// - public static implicit operator bool(SqlConnectionEncryptOption value) => throw null; - - /// - public override string ToString() { throw null; } - - /// - public override bool Equals(object obj) { throw null; } - - /// - public override int GetHashCode() { throw null; } - } - /// - public partial class SqlColumnEncryptionCertificateStoreProvider : Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider - { - /// - public const string ProviderName = "MSSQL_CERTIFICATE_STORE"; - /// - public SqlColumnEncryptionCertificateStoreProvider() { } - /// - public override byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey) { throw null; } - /// - public override byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey) { throw null; } - /// - public override byte[] SignColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations) { throw null; } - /// - public override bool VerifyColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations, byte[] signature) { throw null; } - } - /// - public partial class SqlColumnEncryptionCngProvider : Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider - { - /// - public const string ProviderName = "MSSQL_CNG_STORE"; - /// - public SqlColumnEncryptionCngProvider() { } - /// - public override byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey) { throw null; } - /// - public override byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey) { throw null; } - /// - public override byte[] SignColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations) { throw null; } - /// - public override bool VerifyColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations, byte[] signature) { throw null; } - } - /// - public partial class SqlColumnEncryptionCspProvider : Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider - { - /// - public const string ProviderName = "MSSQL_CSP_PROVIDER"; - /// - public SqlColumnEncryptionCspProvider() { } - /// - public override byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey) { throw null; } - /// - public override byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey) { throw null; } - /// - public override byte[] SignColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations) { throw null; } - /// - public override bool VerifyColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations, byte[] signature) { throw null; } - } - /// - public abstract partial class SqlColumnEncryptionKeyStoreProvider - { - /// - protected SqlColumnEncryptionKeyStoreProvider() { } - /// - public abstract byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey); - /// - public abstract byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey); - /// - public virtual byte[] SignColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations) { throw null; } - /// - public virtual bool VerifyColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations, byte[] signature) { throw null; } - /// - public virtual System.TimeSpan? ColumnEncryptionKeyCacheTtl { get { throw null; } set { } } - } - /// - public enum SqlCommandColumnEncryptionSetting - { - /// - Disabled = 3, - /// - Enabled = 1, - /// - ResultSetOnly = 2, - /// - UseConnectionSetting = 0, - } - /// - [System.ComponentModel.DefaultEventAttribute("RecordsAffected")] - [System.ComponentModel.ToolboxItemAttribute(true)] - public sealed partial class SqlCommand : System.Data.Common.DbCommand, System.ICloneable - { - /// - public SqlCommand() { } - /// - public SqlCommand(string cmdText) { } - /// - public SqlCommand(string cmdText, Microsoft.Data.SqlClient.SqlConnection connection) { } - /// - public SqlCommand(string cmdText, Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlTransaction transaction) { } - /// - public SqlCommand(string cmdText, Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlTransaction transaction, Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting columnEncryptionSetting) { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting ColumnEncryptionSetting { get { throw null; } } - /// - [System.ComponentModel.DefaultValueAttribute("")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public override string CommandText { get { throw null; } set { } } - /// - public override int CommandTimeout { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(1)] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public override System.Data.CommandType CommandType { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlConnection Connection { get { throw null; } set { } } - /// - protected override System.Data.Common.DbConnection DbConnection { get { throw null; } set { } } - /// - protected override System.Data.Common.DbParameterCollection DbParameterCollection { get { throw null; } } - /// - protected override System.Data.Common.DbTransaction DbTransaction { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DefaultValueAttribute(true)] - [System.ComponentModel.DesignOnlyAttribute(true)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool DesignTimeVisible { get { throw null; } set { } } - /// - public bool EnableOptimizedParameterBinding { get { throw null; } set { } } - /// - public new Microsoft.Data.SqlClient.SqlParameterCollection Parameters { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public new Microsoft.Data.SqlClient.SqlTransaction Transaction { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(3)] - public override System.Data.UpdateRowSource UpdatedRowSource { get { throw null; } set { } } - /// - public event System.Data.StatementCompletedEventHandler StatementCompleted { add { } remove { } } - /// - public System.IAsyncResult BeginExecuteNonQuery() { throw null; } - /// - public System.IAsyncResult BeginExecuteNonQuery(System.AsyncCallback callback, object stateObject) { throw null; } - /// - public System.IAsyncResult BeginExecuteReader() { throw null; } - /// - public System.IAsyncResult BeginExecuteReader(System.AsyncCallback callback, object stateObject) { throw null; } - /// - public System.IAsyncResult BeginExecuteReader(System.AsyncCallback callback, object stateObject, System.Data.CommandBehavior behavior) { throw null; } - /// - public System.IAsyncResult BeginExecuteReader(System.Data.CommandBehavior behavior) { throw null; } - /// - public System.IAsyncResult BeginExecuteXmlReader() { throw null; } - /// - public System.IAsyncResult BeginExecuteXmlReader(System.AsyncCallback callback, object stateObject) { throw null; } - /// - public override void Cancel() { } - object System.ICloneable.Clone() { throw null; } - /// - public Microsoft.Data.SqlClient.SqlCommand Clone() { throw null; } - /// - protected override System.Data.Common.DbParameter CreateDbParameter() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlParameter CreateParameter() { throw null; } - /// - public int EndExecuteNonQuery(System.IAsyncResult asyncResult) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlDataReader EndExecuteReader(System.IAsyncResult asyncResult) { throw null; } - /// - public System.Xml.XmlReader EndExecuteXmlReader(System.IAsyncResult asyncResult) { throw null; } - /// - protected override System.Data.Common.DbDataReader ExecuteDbDataReader(System.Data.CommandBehavior behavior) { throw null; } - /// - protected override System.Threading.Tasks.Task ExecuteDbDataReaderAsync(System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override int ExecuteNonQuery() { throw null; } - /// - public override System.Threading.Tasks.Task ExecuteNonQueryAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlDataReader ExecuteReader() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlDataReader ExecuteReader(System.Data.CommandBehavior behavior) { throw null; } - /// - public new System.Threading.Tasks.Task ExecuteReaderAsync() { throw null; } - /// - public new System.Threading.Tasks.Task ExecuteReaderAsync(System.Data.CommandBehavior behavior) { throw null; } - /// - public new System.Threading.Tasks.Task ExecuteReaderAsync(System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public new System.Threading.Tasks.Task ExecuteReaderAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override object ExecuteScalar() { throw null; } - /// - public override System.Threading.Tasks.Task ExecuteScalarAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Xml.XmlReader ExecuteXmlReader() { throw null; } - /// - public System.Threading.Tasks.Task ExecuteXmlReaderAsync() { throw null; } - /// - public System.Threading.Tasks.Task ExecuteXmlReaderAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override void Prepare() { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public Microsoft.Data.Sql.SqlNotificationRequest Notification { get { throw null; } set { } } - /// - public void RegisterColumnEncryptionKeyStoreProvidersOnCommand(System.Collections.Generic.IDictionary customProviders) { } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)] - public void ResetCommandTimeout() { } - /// - public SqlRetryLogicBaseProvider RetryLogicProvider { get { throw null; } set { } } - } - /// - public sealed class SqlCommandBuilder : System.Data.Common.DbCommandBuilder - { - /// - public SqlCommandBuilder() { } - /// - public SqlCommandBuilder(Microsoft.Data.SqlClient.SqlDataAdapter adapter) { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override System.Data.Common.CatalogLocation CatalogLocation { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string CatalogSeparator { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlDataAdapter DataAdapter { get { throw null; } set { } } - /// - public static void DeriveParameters(Microsoft.Data.SqlClient.SqlCommand command) { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string QuotePrefix { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string QuoteSuffix { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string SchemaSeparator { get { throw null; } set { } } - /// - protected override void ApplyParameterInfo(System.Data.Common.DbParameter parameter, System.Data.DataRow datarow, System.Data.StatementType statementType, bool whereClause) { } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetDeleteCommand() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetDeleteCommand(bool useColumnsForParameterNames) { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetInsertCommand() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetInsertCommand(bool useColumnsForParameterNames) { throw null; } - /// - protected override string GetParameterName(int parameterOrdinal) { throw null; } - /// - protected override string GetParameterName(string parameterName) { throw null; } - /// - protected override string GetParameterPlaceholder(int parameterOrdinal) { throw null; } - /// - protected override System.Data.DataTable GetSchemaTable(System.Data.Common.DbCommand srcCommand) { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetUpdateCommand() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetUpdateCommand(bool useColumnsForParameterNames) { throw null; } - /// - protected override System.Data.Common.DbCommand InitializeCommand(System.Data.Common.DbCommand command) { throw null; } - /// - public override string QuoteIdentifier(string unquotedIdentifier) { throw null; } - /// - protected override void SetRowUpdatingHandler(System.Data.Common.DbDataAdapter adapter) { } - /// - public override string UnquoteIdentifier(string quotedIdentifier) { throw null; } - } - /// - [System.ComponentModel.DefaultEventAttribute("InfoMessage")] - public sealed partial class SqlConnection : System.Data.Common.DbConnection, System.ICloneable - { - /// - public SqlConnection() { } - /// - public SqlConnection(string connectionString) { } - /// - public SqlConnection(string connectionString, Microsoft.Data.SqlClient.SqlCredential credential) { } - /// - public static System.TimeSpan ColumnEncryptionKeyCacheTtl { get { throw null; } set { } } - /// - public static bool ColumnEncryptionQueryMetadataCacheEnabled { get { throw null; } set { } } - /// - public static System.Collections.Generic.IDictionary> ColumnEncryptionTrustedMasterKeyPaths { get { throw null; } } - /// - public static void RegisterColumnEncryptionKeyStoreProviders(System.Collections.Generic.IDictionary customProviders) { } - /// - public void RegisterColumnEncryptionKeyStoreProvidersOnConnection(System.Collections.Generic.IDictionary customProviders) { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public string AccessToken { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public System.Guid ClientConnectionId { get { throw null; } } - /// - public System.Func> AccessTokenCallback { get { throw null; } set { } } - - /// - /// for internal test only - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - internal string SQLDNSCachingSupportedState { get { throw null; } } - /// - /// for internal test only - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - internal string SQLDNSCachingSupportedStateBeforeRedirect { get { throw null; } } - - object System.ICloneable.Clone() { throw null; } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public int CommandTimeout { get { throw null; } } - /// - [System.ComponentModel.DefaultValueAttribute("")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - [System.ComponentModel.SettingsBindableAttribute(true)] - public override string ConnectionString { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override int ConnectionTimeout { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public Microsoft.Data.SqlClient.SqlCredential Credential { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override string Database { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(true)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override string DataSource { get { throw null; } } - /// - public bool FireInfoMessageEventOnUserErrors { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public int PacketSize { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override string ServerVersion { get { throw null; } } - /// - public int ServerProcessId { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override System.Data.ConnectionState State { get { throw null; } } - /// - [System.ComponentModel.DefaultValueAttribute(false)] - public bool StatisticsEnabled { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public string WorkstationId { get { throw null; } } - /// - public event Microsoft.Data.SqlClient.SqlInfoMessageEventHandler InfoMessage { add { } remove { } } - /// - protected override System.Data.Common.DbTransaction BeginDbTransaction(System.Data.IsolationLevel isolationLevel) { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlTransaction BeginTransaction() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlTransaction BeginTransaction(System.Data.IsolationLevel iso) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlTransaction BeginTransaction(System.Data.IsolationLevel iso, string transactionName) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlTransaction BeginTransaction(string transactionName) { throw null; } - /// - public override void ChangeDatabase(string database) { throw null; } - /// - public static void ChangePassword(string connectionString, Microsoft.Data.SqlClient.SqlCredential credential, System.Security.SecureString newSecurePassword) { throw null; } - /// - public static void ChangePassword(string connectionString, string newPassword) { throw null; } - /// - public static void ClearAllPools() { throw null; } - /// - public static void ClearPool(Microsoft.Data.SqlClient.SqlConnection connection) { throw null; } - /// - public override void Close() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand CreateCommand() { throw null; } - /// - protected override System.Data.Common.DbCommand CreateDbCommand() { throw null; } - /// - public override System.Data.DataTable GetSchema() { throw null; } - /// - public override System.Data.DataTable GetSchema(string collectionName) { throw null; } - /// - public override System.Data.DataTable GetSchema(string collectionName, string[] restrictionValues) { throw null; } - /// - public override void Open() { } - /// - public void Open(SqlConnectionOverrides overrides) { } - /// - public override System.Threading.Tasks.Task OpenAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public void ResetStatistics() { } - /// - public System.Collections.IDictionary RetrieveStatistics() { throw null; } - /// - public System.Collections.Generic.IDictionary RetrieveInternalInfo() { throw null; } - /// - public SqlRetryLogicBaseProvider RetryLogicProvider { get { throw null; } set { } } - } - /// - public enum SqlConnectionColumnEncryptionSetting - { - /// - Disabled = 0, - /// - Enabled = 1, - } - /// - public enum SqlConnectionOverrides - { - /// - None = 0, - /// - OpenWithoutRetry = 1, - } - /// - [System.ComponentModel.DefaultPropertyAttribute("DataSource")] - public sealed partial class SqlConnectionStringBuilder : System.Data.Common.DbConnectionStringBuilder - { - /// - public SqlConnectionStringBuilder() { } - /// - public SqlConnectionStringBuilder(string connectionString) { } - /// - [System.ComponentModel.DisplayNameAttribute("Application Intent")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.ApplicationIntent ApplicationIntent { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Application Name")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string ApplicationName { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("AttachDbFilename")] - [System.ComponentModel.EditorAttribute("System.Windows.Forms.Design.FileNameEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string AttachDBFilename { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Authentication")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.SqlAuthenticationMethod Authentication { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Column Encryption Setting")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.SqlConnectionColumnEncryptionSetting ColumnEncryptionSetting { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Command Timeout")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int CommandTimeout { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Connect Retry Count")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int ConnectRetryCount { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Connect Retry Interval")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int ConnectRetryInterval { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Connect Timeout")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int ConnectTimeout { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Current Language")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string CurrentLanguage { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Data Source")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string DataSource { get { throw null; } set { } } -#if NETCOREAPP || NETSTANDARD2_1_OR_GREATER - /// - [System.ComponentModel.DisplayNameAttribute("Attestation Protocol")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.SqlConnectionAttestationProtocol AttestationProtocol { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Enclave Attestation Url")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string EnclaveAttestationUrl { get { throw null; } set { } } -#endif - /// - [System.ComponentModel.DisplayNameAttribute("IP Address Preference")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.SqlConnectionIPAddressPreference IPAddressPreference { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Encrypt")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public SqlConnectionEncryptOption Encrypt { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Host Name In Certificate")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string HostNameInCertificate { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Server Certificate")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string ServerCertificate { get { throw null; } set { } } - - /// - [System.ComponentModel.DisplayNameAttribute("Enlist")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool Enlist { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Failover Partner")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string FailoverPartner { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Failover Partner SPN")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string FailoverPartnerSPN { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Initial Catalog")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string InitialCatalog { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Integrated Security")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool IntegratedSecurity { get { throw null; } set { } } - /// - public override bool IsFixedSize { get { throw null; } } - /// - public override object this[string keyword] { get { throw null; } set { } } - /// - public override System.Collections.ICollection Keys { get { throw null; } } - /// - [System.ComponentModel.DisplayNameAttribute("Load Balance Timeout")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int LoadBalanceTimeout { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Max Pool Size")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int MaxPoolSize { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Min Pool Size")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int MinPoolSize { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Multiple Active Result Sets")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool MultipleActiveResultSets { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Multi Subnet Failover")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool MultiSubnetFailover { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Packet Size")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int PacketSize { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Password")] - [System.ComponentModel.PasswordPropertyTextAttribute(true)] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string Password { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Persist Security Info")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool PersistSecurityInfo { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Pool Blocking Period")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public PoolBlockingPeriod PoolBlockingPeriod { get { throw null; } set { } }/// - [System.ComponentModel.DisplayNameAttribute("Pooling")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool Pooling { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Replication")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool Replication { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Server SPN")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string ServerSPN { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Transaction Binding")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string TransactionBinding { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Trust Server Certificate")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool TrustServerCertificate { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Type System Version")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string TypeSystemVersion { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("User ID")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string UserID { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("User Instance")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool UserInstance { get { throw null; } set { } } - /// - public override System.Collections.ICollection Values { get { throw null; } } - /// - [System.ComponentModel.DisplayNameAttribute("Workstation ID")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string WorkstationID { get { throw null; } set { } } - /// - public override void Clear() { } - /// - public override bool ContainsKey(string keyword) { throw null; } - /// - public override bool Remove(string keyword) { throw null; } - /// - public override bool ShouldSerialize(string keyword) { throw null; } - /// - public override bool TryGetValue(string keyword, out object value) { throw null; } - } - /// - public sealed class SqlCredential - { - /// - public SqlCredential(string userId, System.Security.SecureString password) { } - /// - public System.Security.SecureString Password { get { throw null; } } - /// - public string UserId { get { throw null; } } - } - /// - [System.ComponentModel.DefaultEventAttribute("RowUpdated")] - public sealed partial class SqlDataAdapter : System.Data.Common.DbDataAdapter, System.Data.IDataAdapter, System.Data.IDbDataAdapter, System.ICloneable - { - /// - public SqlDataAdapter() { } - /// - public SqlDataAdapter(Microsoft.Data.SqlClient.SqlCommand selectCommand) { } - /// - public SqlDataAdapter(string selectCommandText, Microsoft.Data.SqlClient.SqlConnection selectConnection) { } - /// - public SqlDataAdapter(string selectCommandText, string selectConnectionString) { } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlCommand DeleteCommand { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlCommand InsertCommand { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlCommand SelectCommand { get { throw null; } set { } } - System.Data.IDbCommand System.Data.IDbDataAdapter.DeleteCommand { get { throw null; } set { } } - System.Data.IDbCommand System.Data.IDbDataAdapter.InsertCommand { get { throw null; } set { } } - System.Data.IDbCommand System.Data.IDbDataAdapter.SelectCommand { get { throw null; } set { } } - System.Data.IDbCommand System.Data.IDbDataAdapter.UpdateCommand { get { throw null; } set { } } - /// - public override int UpdateBatchSize { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlCommand UpdateCommand { get { throw null; } set { } } - /// - public event Microsoft.Data.SqlClient.SqlRowUpdatedEventHandler RowUpdated { add { } remove { } } - /// - public event Microsoft.Data.SqlClient.SqlRowUpdatingEventHandler RowUpdating { add { } remove { } } - /// - protected override void OnRowUpdated(System.Data.Common.RowUpdatedEventArgs value) { } - /// - protected override void OnRowUpdating(System.Data.Common.RowUpdatingEventArgs value) { } - object System.ICloneable.Clone() { throw null; } - } - /// - public partial class SqlDataReader : System.Data.Common.DbDataReader, System.Data.IDataReader, System.IDisposable - { - internal SqlDataReader() { } - /// - protected Microsoft.Data.SqlClient.SqlConnection Connection { get { throw null; } } - /// - public override int Depth { get { throw null; } } - /// - public override int FieldCount { get { throw null; } } - /// - public override bool HasRows { get { throw null; } } - /// - public override bool IsClosed { get { throw null; } } - /// - public override object this[int i] { get { throw null; } } - /// - public override object this[string name] { get { throw null; } } - /// - public override int RecordsAffected { get { throw null; } } - /// - public Microsoft.Data.SqlClient.DataClassification.SensitivityClassification SensitivityClassification { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public override int VisibleFieldCount { get { throw null; } } - /// - public override void Close() { } - /// - public override bool GetBoolean(int i) { throw null; } - /// - public override byte GetByte(int i) { throw null; } - /// - public override long GetBytes(int i, long dataIndex, byte[] buffer, int bufferIndex, int length) { throw null; } - /// - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override char GetChar(int i) { throw null; } - /// - public override long GetChars(int i, long dataIndex, char[] buffer, int bufferIndex, int length) { throw null; } - /// - public System.Collections.ObjectModel.ReadOnlyCollection GetColumnSchema() { throw null; }/// - public override string GetDataTypeName(int i) { throw null; } - /// - public override System.DateTime GetDateTime(int i) { throw null; } - /// - public virtual System.DateTimeOffset GetDateTimeOffset(int i) { throw null; } - /// - public override decimal GetDecimal(int i) { throw null; } - /// - public override double GetDouble(int i) { throw null; } - /// - public override System.Collections.IEnumerator GetEnumerator() { throw null; } - /// - public override System.Type GetFieldType(int i) { throw null; } - /// - public override T GetFieldValue(int i) { throw null; } - /// - public override System.Threading.Tasks.Task GetFieldValueAsync(int i, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override float GetFloat(int i) { throw null; } - /// - public override System.Guid GetGuid(int i) { throw null; } - /// - public override short GetInt16(int i) { throw null; } - /// - public override int GetInt32(int i) { throw null; } - /// - public override long GetInt64(int i) { throw null; } - /// - public override string GetName(int i) { throw null; } - /// - public override int GetOrdinal(string name) { throw null; } - /// - public override System.Type GetProviderSpecificFieldType(int i) { throw null; } - /// - public override object GetProviderSpecificValue(int i) { throw null; } - /// - public override int GetProviderSpecificValues(object[] values) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBinary GetSqlBinary(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBoolean GetSqlBoolean(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlByte GetSqlByte(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBytes GetSqlBytes(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlChars GetSqlChars(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDateTime GetSqlDateTime(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDecimal GetSqlDecimal(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDouble GetSqlDouble(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlGuid GetSqlGuid(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt16 GetSqlInt16(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt32 GetSqlInt32(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt64 GetSqlInt64(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlMoney GetSqlMoney(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlSingle GetSqlSingle(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlString GetSqlString(int i) { throw null; } - /// - public virtual object GetSqlValue(int i) { throw null; } - /// - public virtual int GetSqlValues(object[] values) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlXml GetSqlXml(int i) { throw null; } - /// - public override System.Data.DataTable GetSchemaTable() { throw null; } - /// - public override System.IO.Stream GetStream(int i) { throw null; } - /// - public override string GetString(int i) { throw null; } - /// - public override System.IO.TextReader GetTextReader(int i) { throw null; } - /// - public virtual System.TimeSpan GetTimeSpan(int i) { throw null; } - /// - public override object GetValue(int i) { throw null; } - /// - public override int GetValues(object[] values) { throw null; } - /// - public virtual System.Xml.XmlReader GetXmlReader(int i) { throw null; } - /// - protected internal bool IsCommandBehavior(System.Data.CommandBehavior condition) { throw null; } - /// - public override bool IsDBNull(int i) { throw null; } - /// - public override System.Threading.Tasks.Task IsDBNullAsync(int i, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override bool NextResult() { throw null; } - /// - public override System.Threading.Tasks.Task NextResultAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override bool Read() { throw null; } - /// - public override System.Threading.Tasks.Task ReadAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - System.Data.IDataReader System.Data.IDataRecord.GetData(int i) { throw null; } - } - /// - public sealed partial class SqlDependency - { - /// - public SqlDependency() { } - /// - public SqlDependency(Microsoft.Data.SqlClient.SqlCommand command) { } - /// - public SqlDependency(Microsoft.Data.SqlClient.SqlCommand command, string options, int timeout) { } - /// - public bool HasChanges { get { throw null; } } - /// - public string Id { get { throw null; } } - /// - public event Microsoft.Data.SqlClient.OnChangeEventHandler OnChange { add { } remove { } } - /// - public void AddCommandDependency(Microsoft.Data.SqlClient.SqlCommand command) { } - /// - public static bool Start(string connectionString) { throw null; } - /// - public static bool Start(string connectionString, string queue) { throw null; } - /// - public static bool Stop(string connectionString) { throw null; } - /// - public static bool Stop(string connectionString, string queue) { throw null; } - } - /// - public sealed partial class SqlError - { - internal SqlError() { } - /// - public byte Class { get { throw null; } } - /// - public int LineNumber { get { throw null; } } - /// - public string Message { get { throw null; } } - /// - public int Number { get { throw null; } } - /// - public string Procedure { get { throw null; } } - /// - public string Server { get { throw null; } } - /// - public string Source { get { throw null; } } - /// - public byte State { get { throw null; } } - /// - public override string ToString() { throw null; } - } - /// - [System.ComponentModel.ListBindableAttribute(false)] - public sealed partial class SqlErrorCollection : System.Collections.ICollection, System.Collections.IEnumerable - { - internal SqlErrorCollection() { } - /// - public int Count { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlError this[int index] { get { throw null; } } - /// - bool System.Collections.ICollection.IsSynchronized { get { throw null; } } - /// - object System.Collections.ICollection.SyncRoot { get { throw null; } } - /// - public void CopyTo(System.Array array, int index) { } - /// - public void CopyTo(Microsoft.Data.SqlClient.SqlError[] array, int index) { } - /// - public System.Collections.IEnumerator GetEnumerator() { throw null; } - } - /// - public sealed partial class SqlException : System.Data.Common.DbException - { - internal SqlException() { } - /// - public byte Class { get { throw null; } } - /// - public System.Guid ClientConnectionId { get { throw null; } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)] - public Microsoft.Data.SqlClient.SqlErrorCollection Errors { get { throw null; } } - /// - public int LineNumber { get { throw null; } } - /// - public int Number { get { throw null; } } - /// - public string Procedure { get { throw null; } } - /// - public string Server { get { throw null; } } - /// - public override string Source { get { throw null; } } - /// - public byte State { get { throw null; } } - - /// -#if !NET6_0_OR_GREATER - [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] -#endif -#if NET8_0_OR_GREATER - [System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] -#endif - public override void GetObjectData(System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext context) { } - /// - public override string ToString() { throw null; } - } - /// - public sealed partial class SqlInfoMessageEventArgs : System.EventArgs - { - internal SqlInfoMessageEventArgs() { } - /// - public Microsoft.Data.SqlClient.SqlErrorCollection Errors { get { throw null; } } - /// - public string Message { get { throw null; } } - /// - public string Source { get { throw null; } } - /// - public override string ToString() { throw null; } - } - /// - public delegate void SqlInfoMessageEventHandler(object sender, Microsoft.Data.SqlClient.SqlInfoMessageEventArgs e); - /// - public partial class SqlNotificationEventArgs : System.EventArgs - { - /// - public SqlNotificationEventArgs(Microsoft.Data.SqlClient.SqlNotificationType type, Microsoft.Data.SqlClient.SqlNotificationInfo info, Microsoft.Data.SqlClient.SqlNotificationSource source) { } - /// - public Microsoft.Data.SqlClient.SqlNotificationInfo Info { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlNotificationSource Source { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlNotificationType Type { get { throw null; } } - } - /// - public enum SqlNotificationInfo - { - /// - AlreadyChanged = -2, - /// - Alter = 5, - /// - Delete = 3, - /// - Drop = 4, - /// - Error = 7, - /// - Expired = 12, - /// - Insert = 1, - /// - Invalid = 9, - /// - Isolation = 11, - /// - Merge = 16, - /// - Options = 10, - /// - PreviousFire = 14, - /// - Query = 8, - /// - Resource = 13, - /// - Restart = 6, - /// - TemplateLimit = 15, - /// - Truncate = 0, - /// - Unknown = -1, - /// - Update = 2 - } - /// - public enum SqlNotificationSource - { - /// - Client = -2, - /// - Data = 0, - /// - Database = 3, - /// - Environment = 6, - /// - Execution = 7, - /// - Object = 2, - /// - Owner = 8, - /// - Statement = 5, - /// - System = 4, - /// - Timeout = 1, - /// - Unknown = -1 - } - /// - public enum SqlNotificationType - { - /// - Change = 0, - /// - Subscribe = 1, - /// - Unknown = -1 - } - /// - public sealed partial class SqlParameter : System.Data.Common.DbParameter, System.Data.IDataParameter, System.Data.IDbDataParameter, System.ICloneable - { - /// - public SqlParameter() { } - /// - public SqlParameter(string parameterName, System.Data.SqlDbType dbType) { } - /// - public SqlParameter(string parameterName, System.Data.SqlDbType dbType, int size) { } - /// - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - public SqlParameter(string parameterName, System.Data.SqlDbType dbType, int size, System.Data.ParameterDirection direction, bool isNullable, byte precision, byte scale, string sourceColumn, System.Data.DataRowVersion sourceVersion, object value) { } - /// - public SqlParameter(string parameterName, System.Data.SqlDbType dbType, int size, System.Data.ParameterDirection direction, byte precision, byte scale, string sourceColumn, System.Data.DataRowVersion sourceVersion, bool sourceColumnNullMapping, object value, string xmlSchemaCollectionDatabase, string xmlSchemaCollectionOwningSchema, string xmlSchemaCollectionName) { } - /// - public SqlParameter(string parameterName, System.Data.SqlDbType dbType, int size, string sourceColumn) { } - /// - public SqlParameter(string parameterName, object value) { } - object System.ICloneable.Clone() { throw null; } - /// - [System.ComponentModel.BrowsableAttribute(false)] - public System.Data.SqlTypes.SqlCompareOptions CompareInfo { get { throw null; } set { } } - /// - public override System.Data.DbType DbType { get { throw null; } set { } } - /// - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public override System.Data.ParameterDirection Direction { get { throw null; } set { } } - /// - public bool ForceColumnEncryption { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } - /// - [System.ComponentModel.DefaultValueAttribute(false)] - public override bool IsNullable { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - public int LocaleId { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - public int Offset { get { throw null; } set { } } - /// - public override string ParameterName { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute((byte)0)] - public new byte Precision { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute((byte)0)] - public new byte Scale { get { throw null; } set { } } - /// - public override int Size { get { throw null; } set { } } - /// - public override string SourceColumn { get { throw null; } set { } } - /// - public override bool SourceColumnNullMapping { get { throw null; } set { } } - /// - public override System.Data.DataRowVersion SourceVersion { get { throw null; } set { } } - /// - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - [System.Data.Common.DbProviderSpecificTypePropertyAttribute(true)] - public System.Data.SqlDbType SqlDbType { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public object SqlValue { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - public string TypeName { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - public string UdtTypeName { get { throw null; } set { } } - /// - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - [System.ComponentModel.TypeConverterAttribute(typeof(System.ComponentModel.StringConverter))] - public override object Value { get { throw null; } set { } } - /// - public string XmlSchemaCollectionDatabase { get { throw null; } set { } } - /// - public string XmlSchemaCollectionName { get { throw null; } set { } } - /// - public string XmlSchemaCollectionOwningSchema { get { throw null; } set { } } - /// - public override void ResetDbType() { } - /// - public void ResetSqlDbType() { } - /// - public override string ToString() { throw null; } - } - /// - [System.ComponentModel.ListBindableAttribute(false)] - public sealed partial class SqlParameterCollection : System.Data.Common.DbParameterCollection - { - internal SqlParameterCollection() { } - /// - public override int Count { get { throw null; } } - /// - public override bool IsFixedSize { get { throw null; } } - /// - public override bool IsReadOnly { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public new Microsoft.Data.SqlClient.SqlParameter this[int index] { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public new Microsoft.Data.SqlClient.SqlParameter this[string parameterName] { get { throw null; } set { } } - /// - public override object SyncRoot { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlParameter Add(Microsoft.Data.SqlClient.SqlParameter value) { throw null; } - /// - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int Add(object value) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlParameter Add(string parameterName, System.Data.SqlDbType sqlDbType) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlParameter Add(string parameterName, System.Data.SqlDbType sqlDbType, int size) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlParameter Add(string parameterName, System.Data.SqlDbType sqlDbType, int size, string sourceColumn) { throw null; } - /// - public void AddRange(Microsoft.Data.SqlClient.SqlParameter[] values) { } - /// - public override void AddRange(System.Array values) { } - /// - public Microsoft.Data.SqlClient.SqlParameter AddWithValue(string parameterName, object value) { throw null; } - /// - public override void Clear() { } - /// - public bool Contains(Microsoft.Data.SqlClient.SqlParameter value) { throw null; } - /// - public override bool Contains(object value) { throw null; } - /// - public override bool Contains(string value) { throw null; } - /// - public override void CopyTo(System.Array array, int index) { } - /// - public void CopyTo(Microsoft.Data.SqlClient.SqlParameter[] array, int index) { } - /// - public override System.Collections.IEnumerator GetEnumerator() { throw null; } - /// - protected override System.Data.Common.DbParameter GetParameter(int index) { throw null; } - /// - protected override System.Data.Common.DbParameter GetParameter(string parameterName) { throw null; } - /// - public int IndexOf(Microsoft.Data.SqlClient.SqlParameter value) { throw null; } - /// - public override int IndexOf(object value) { throw null; } - /// - public override int IndexOf(string parameterName) { throw null; } - /// - public void Insert(int index, Microsoft.Data.SqlClient.SqlParameter value) { } - /// - public override void Insert(int index, object value) { } - /// - public void Remove(Microsoft.Data.SqlClient.SqlParameter value) { } - /// - public override void Remove(object value) { } - /// - public override void RemoveAt(int index) { } - /// - public override void RemoveAt(string parameterName) { } - /// - protected override void SetParameter(int index, System.Data.Common.DbParameter value) { } - /// - protected override void SetParameter(string parameterName, System.Data.Common.DbParameter value) { } - } - /// - public partial class SqlRowsCopiedEventArgs : System.EventArgs - { - /// - public SqlRowsCopiedEventArgs(long rowsCopied) { } - /// - public bool Abort { get { throw null; } set { } } - /// - public long RowsCopied { get { throw null; } } - } - /// - public delegate void SqlRowsCopiedEventHandler(object sender, Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs e); - /// - public sealed partial class SqlRowUpdatedEventArgs : System.Data.Common.RowUpdatedEventArgs - { - /// - public SqlRowUpdatedEventArgs(System.Data.DataRow row, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) - : base(row, command, statementType, tableMapping) { } - /// - public new Microsoft.Data.SqlClient.SqlCommand Command { get { throw null; } } - } - /// - public delegate void SqlRowUpdatedEventHandler(object sender, Microsoft.Data.SqlClient.SqlRowUpdatedEventArgs e); - /// - public sealed partial class SqlRowUpdatingEventArgs : System.Data.Common.RowUpdatingEventArgs - { - /// - public SqlRowUpdatingEventArgs(System.Data.DataRow row, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) - : base(row, command, statementType, tableMapping) { } - /// - protected override System.Data.IDbCommand BaseCommand { get { throw null; } set { } } - /// - public new Microsoft.Data.SqlClient.SqlCommand Command { get { throw null; } set { } } - } - /// - public delegate void SqlRowUpdatingEventHandler(object sender, Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs e); - /// - public sealed partial class SqlTransaction : System.Data.Common.DbTransaction - { - internal SqlTransaction() { } - /// - public new Microsoft.Data.SqlClient.SqlConnection Connection { get { throw null; } } - /// - protected override System.Data.Common.DbConnection DbConnection { get { throw null; } } - /// - public override System.Data.IsolationLevel IsolationLevel { get { throw null; } } - /// - public override void Commit() { } - /// - protected override void Dispose(bool disposing) { } - /// - public override void Rollback() { } - /// -#if NET6_0_OR_GREATER - public override void Rollback(string transactionName) { } -#else - public void Rollback(string transactionName) { } -#endif - - /// -#if NET6_0_OR_GREATER - public override void Save(string savePointName) { } -#else - public void Save(string savePointName) { } -#endif - } - /// - public sealed class SqlRetryingEventArgs : System.EventArgs - { - /// - public SqlRetryingEventArgs(int retryCount, System.TimeSpan delay, System.Collections.Generic.IList exceptions) { } - /// - public int RetryCount { get { throw null; } } - /// - public System.TimeSpan Delay { get { throw null; } } - /// - public bool Cancel { get { throw null; } set { } } - /// - public System.Collections.Generic.IList Exceptions { get { throw null; } } - } - /// - public abstract class SqlRetryIntervalBaseEnumerator : System.Collections.Generic.IEnumerator, System.ICloneable - { - private readonly System.TimeSpan _minValue = System.TimeSpan.Zero; - private readonly System.TimeSpan _maxValue = System.TimeSpan.FromSeconds(120); - /// - public System.TimeSpan GapTimeInterval { get { throw null; } protected set { } } - /// - public System.TimeSpan MaxTimeInterval { get { throw null; } protected set { } } - /// - public System.TimeSpan MinTimeInterval { get { throw null; } protected set { } } - /// - public System.TimeSpan Current { get { throw null; } protected set { } } - object System.Collections.IEnumerator.Current { get { throw null; } } - /// - public SqlRetryIntervalBaseEnumerator() { } - /// - public SqlRetryIntervalBaseEnumerator(System.TimeSpan timeInterval, System.TimeSpan maxTime, System.TimeSpan minTime) { } - /// - public virtual void Reset() { } - /// - protected virtual void Validate(System.TimeSpan timeInterval, System.TimeSpan maxTimeInterval, System.TimeSpan minTimeInterval) { } - /// - protected abstract System.TimeSpan GetNextInterval(); - /// - public virtual bool MoveNext() { throw null; } - /// - public virtual void Dispose() { } - /// - public virtual object Clone() { throw null; } - } - /// - public abstract class SqlRetryLogicBase : System.ICloneable - { - /// - public int NumberOfTries { get { throw null; } protected set { } } - /// - public int Current { get { throw null; } protected set { } } - /// - public SqlRetryIntervalBaseEnumerator RetryIntervalEnumerator { get { throw null; } protected set { } } - /// - public System.Predicate TransientPredicate { get { throw null; } protected set { } } - /// - public virtual bool RetryCondition(object sender) { throw null; } - /// - public abstract bool TryNextInterval(out System.TimeSpan intervalTime); - /// - public abstract void Reset(); - /// - public virtual object Clone() { throw null; } - } - /// - public abstract class SqlRetryLogicBaseProvider - { - /// - public System.EventHandler Retrying { get { throw null; } set { } } - /// - public SqlRetryLogicBase RetryLogic { get { throw null; } protected set { } } - /// - public abstract TResult Execute(object sender, System.Func function); - /// - public abstract System.Threading.Tasks.Task ExecuteAsync(object sender, System.Func> function, System.Threading.CancellationToken cancellationToken = default); - /// - public abstract System.Threading.Tasks.Task ExecuteAsync(object sender, System.Func function, System.Threading.CancellationToken cancellationToken = default); - } - /// - public sealed class SqlRetryLogicOption - { - /// - public int NumberOfTries { get { throw null; } set { } } - /// - public System.TimeSpan DeltaTime { get { throw null; } set { } } - /// - public System.TimeSpan MinTimeInterval { get { throw null; } set { } } - /// - public System.TimeSpan MaxTimeInterval { get { throw null; } set { } } - /// - public System.Collections.Generic.IEnumerable TransientErrors { get { throw null; } set { } } - /// - public System.Predicate AuthorizedSqlCondition { get { throw null; } set { } } - } - /// - public sealed class SqlConfigurableRetryFactory - { - /// - public static SqlRetryLogicBaseProvider CreateExponentialRetryProvider(SqlRetryLogicOption retryLogicOption) { throw null; } - /// - public static SqlRetryLogicBaseProvider CreateIncrementalRetryProvider(SqlRetryLogicOption retryLogicOption) { throw null; } - /// - public static SqlRetryLogicBaseProvider CreateFixedRetryProvider(SqlRetryLogicOption retryLogicOption) { throw null; } - /// - public static SqlRetryLogicBaseProvider CreateNoneRetryProvider() { throw null; } - } -} -namespace Microsoft.Data.SqlClient.Server -{ - /// - public partial class SqlDataRecord : System.Data.IDataRecord - { - /// - public SqlDataRecord(params Microsoft.Data.SqlClient.Server.SqlMetaData[] metaData) { } - /// - public virtual int FieldCount { get { throw null; } } - /// - public virtual object this[int ordinal] { get { throw null; } } - /// - public virtual object this[string name] { get { throw null; } } - /// - public virtual bool GetBoolean(int ordinal) { throw null; } - /// - public virtual byte GetByte(int ordinal) { throw null; } - /// - public virtual long GetBytes(int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length) { throw null; } - /// - public virtual char GetChar(int ordinal) { throw null; } - /// - public virtual long GetChars(int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length) { throw null; } - /// - System.Data.IDataReader System.Data.IDataRecord.GetData(int ordinal) { throw null; } - /// - public virtual string GetDataTypeName(int ordinal) { throw null; } - /// - public virtual System.DateTime GetDateTime(int ordinal) { throw null; } - /// - public virtual System.DateTimeOffset GetDateTimeOffset(int ordinal) { throw null; } - /// - public virtual decimal GetDecimal(int ordinal) { throw null; } - /// - public virtual double GetDouble(int ordinal) { throw null; } - /// - public virtual System.Type GetFieldType(int ordinal) { throw null; } - /// - public virtual float GetFloat(int ordinal) { throw null; } - /// - public virtual System.Guid GetGuid(int ordinal) { throw null; } - /// - public virtual short GetInt16(int ordinal) { throw null; } - /// - public virtual int GetInt32(int ordinal) { throw null; } - /// - public virtual long GetInt64(int ordinal) { throw null; } - /// - public virtual string GetName(int ordinal) { throw null; } - /// - public virtual int GetOrdinal(string name) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBinary GetSqlBinary(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBoolean GetSqlBoolean(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlByte GetSqlByte(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBytes GetSqlBytes(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlChars GetSqlChars(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDateTime GetSqlDateTime(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDecimal GetSqlDecimal(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDouble GetSqlDouble(int ordinal) { throw null; } - /// - public virtual System.Type GetSqlFieldType(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlGuid GetSqlGuid(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt16 GetSqlInt16(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt32 GetSqlInt32(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt64 GetSqlInt64(int ordinal) { throw null; } - /// - public virtual Microsoft.Data.SqlClient.Server.SqlMetaData GetSqlMetaData(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlMoney GetSqlMoney(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlSingle GetSqlSingle(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlString GetSqlString(int ordinal) { throw null; } - /// - public virtual object GetSqlValue(int ordinal) { throw null; } - /// - public virtual int GetSqlValues(object[] values) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlXml GetSqlXml(int ordinal) { throw null; } - /// - public virtual string GetString(int ordinal) { throw null; } - /// - public virtual System.TimeSpan GetTimeSpan(int ordinal) { throw null; } - /// - public virtual object GetValue(int ordinal) { throw null; } - /// - public virtual int GetValues(object[] values) { throw null; } - /// - public virtual bool IsDBNull(int ordinal) { throw null; } - /// - public virtual void SetBoolean(int ordinal, bool value) { } - /// - public virtual void SetByte(int ordinal, byte value) { } - /// - public virtual void SetBytes(int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length) { } - /// - public virtual void SetChar(int ordinal, char value) { } - /// - public virtual void SetChars(int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length) { } - /// - public virtual void SetDateTime(int ordinal, System.DateTime value) { } - /// - public virtual void SetDateTimeOffset(int ordinal, System.DateTimeOffset value) { } - /// - public virtual void SetDBNull(int ordinal) { } - /// - public virtual void SetDecimal(int ordinal, decimal value) { } - /// - public virtual void SetDouble(int ordinal, double value) { } - /// - public virtual void SetFloat(int ordinal, float value) { } - /// - public virtual void SetGuid(int ordinal, System.Guid value) { } - /// - public virtual void SetInt16(int ordinal, short value) { } - /// - public virtual void SetInt32(int ordinal, int value) { } - /// - public virtual void SetInt64(int ordinal, long value) { } - /// - public virtual void SetSqlBinary(int ordinal, System.Data.SqlTypes.SqlBinary value) { } - /// - public virtual void SetSqlBoolean(int ordinal, System.Data.SqlTypes.SqlBoolean value) { } - /// - public virtual void SetSqlByte(int ordinal, System.Data.SqlTypes.SqlByte value) { } - /// - public virtual void SetSqlBytes(int ordinal, System.Data.SqlTypes.SqlBytes value) { } - /// - public virtual void SetSqlChars(int ordinal, System.Data.SqlTypes.SqlChars value) { } - /// - public virtual void SetSqlDateTime(int ordinal, System.Data.SqlTypes.SqlDateTime value) { } - /// - public virtual void SetSqlDecimal(int ordinal, System.Data.SqlTypes.SqlDecimal value) { } - /// - public virtual void SetSqlDouble(int ordinal, System.Data.SqlTypes.SqlDouble value) { } - /// - public virtual void SetSqlGuid(int ordinal, System.Data.SqlTypes.SqlGuid value) { } - /// - public virtual void SetSqlInt16(int ordinal, System.Data.SqlTypes.SqlInt16 value) { } - /// - public virtual void SetSqlInt32(int ordinal, System.Data.SqlTypes.SqlInt32 value) { } - /// - public virtual void SetSqlInt64(int ordinal, System.Data.SqlTypes.SqlInt64 value) { } - /// - public virtual void SetSqlMoney(int ordinal, System.Data.SqlTypes.SqlMoney value) { } - /// - public virtual void SetSqlSingle(int ordinal, System.Data.SqlTypes.SqlSingle value) { } - /// - public virtual void SetSqlString(int ordinal, System.Data.SqlTypes.SqlString value) { } - /// - public virtual void SetSqlXml(int ordinal, System.Data.SqlTypes.SqlXml value) { } - /// - public virtual void SetString(int ordinal, string value) { } - /// - public virtual void SetTimeSpan(int ordinal, System.TimeSpan value) { } - /// - public virtual void SetValue(int ordinal, object value) { } - /// - public virtual int SetValues(params object[] values) { throw null; } - } - /// - public sealed partial class SqlMetaData - { - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, byte precision, byte scale) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, byte precision, byte scale, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, byte precision, byte scale, long locale, System.Data.SqlTypes.SqlCompareOptions compareOptions, System.Type userDefinedType) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, byte precision, byte scale, long localeId, System.Data.SqlTypes.SqlCompareOptions compareOptions, System.Type userDefinedType, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, long locale, System.Data.SqlTypes.SqlCompareOptions compareOptions) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, long locale, System.Data.SqlTypes.SqlCompareOptions compareOptions, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, string database, string owningSchema, string objectName) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, string database, string owningSchema, string objectName, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, System.Type userDefinedType) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, System.Type userDefinedType, string serverTypeName) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, System.Type userDefinedType, string serverTypeName, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public System.Data.SqlTypes.SqlCompareOptions CompareOptions { get { throw null; } } - /// - public System.Data.DbType DbType { get { throw null; } } - /// - public bool IsUniqueKey { get { throw null; } } - /// - public long LocaleId { get { throw null; } } - /// - public static long Max { get { throw null; } } - /// - public long MaxLength { get { throw null; } } - /// - public string Name { get { throw null; } } - /// - public byte Precision { get { throw null; } } - /// - public byte Scale { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SortOrder SortOrder { get { throw null; } } - /// - public int SortOrdinal { get { throw null; } } - /// - public System.Data.SqlDbType SqlDbType { get { throw null; } } - /// - public System.Type Type { get { throw null; } } - /// - public string TypeName { get { throw null; } } - /// - public bool UseServerDefault { get { throw null; } } - /// - public string XmlSchemaCollectionDatabase { get { throw null; } } - /// - public string XmlSchemaCollectionName { get { throw null; } } - /// - public string XmlSchemaCollectionOwningSchema { get { throw null; } } - /// - public bool Adjust(bool value) { throw null; } - /// - public byte Adjust(byte value) { throw null; } - /// - public byte[] Adjust(byte[] value) { throw null; } - /// - public char Adjust(char value) { throw null; } - /// - public char[] Adjust(char[] value) { throw null; } - /// - public System.Data.SqlTypes.SqlBinary Adjust(System.Data.SqlTypes.SqlBinary value) { throw null; } - /// - public System.Data.SqlTypes.SqlBoolean Adjust(System.Data.SqlTypes.SqlBoolean value) { throw null; } - /// - public System.Data.SqlTypes.SqlByte Adjust(System.Data.SqlTypes.SqlByte value) { throw null; } - /// - public System.Data.SqlTypes.SqlBytes Adjust(System.Data.SqlTypes.SqlBytes value) { throw null; } - /// - public System.Data.SqlTypes.SqlChars Adjust(System.Data.SqlTypes.SqlChars value) { throw null; } - /// - public System.Data.SqlTypes.SqlDateTime Adjust(System.Data.SqlTypes.SqlDateTime value) { throw null; } - /// - public System.Data.SqlTypes.SqlDecimal Adjust(System.Data.SqlTypes.SqlDecimal value) { throw null; } - /// - public System.Data.SqlTypes.SqlDouble Adjust(System.Data.SqlTypes.SqlDouble value) { throw null; } - /// - public System.Data.SqlTypes.SqlGuid Adjust(System.Data.SqlTypes.SqlGuid value) { throw null; } - /// - public System.Data.SqlTypes.SqlInt16 Adjust(System.Data.SqlTypes.SqlInt16 value) { throw null; } - /// - public System.Data.SqlTypes.SqlInt32 Adjust(System.Data.SqlTypes.SqlInt32 value) { throw null; } - /// - public System.Data.SqlTypes.SqlInt64 Adjust(System.Data.SqlTypes.SqlInt64 value) { throw null; } - /// - public System.Data.SqlTypes.SqlMoney Adjust(System.Data.SqlTypes.SqlMoney value) { throw null; } - /// - public System.Data.SqlTypes.SqlSingle Adjust(System.Data.SqlTypes.SqlSingle value) { throw null; } - /// - public System.Data.SqlTypes.SqlString Adjust(System.Data.SqlTypes.SqlString value) { throw null; } - /// - public System.Data.SqlTypes.SqlXml Adjust(System.Data.SqlTypes.SqlXml value) { throw null; } - /// - public System.DateTime Adjust(System.DateTime value) { throw null; } - /// - public System.DateTimeOffset Adjust(System.DateTimeOffset value) { throw null; } - /// - public decimal Adjust(decimal value) { throw null; } - /// - public double Adjust(double value) { throw null; } - /// - public System.Guid Adjust(System.Guid value) { throw null; } - /// - public short Adjust(short value) { throw null; } - /// - public int Adjust(int value) { throw null; } - /// - public long Adjust(long value) { throw null; } - /// - public object Adjust(object value) { throw null; } - /// - public float Adjust(float value) { throw null; } - /// - public string Adjust(string value) { throw null; } - /// - public System.TimeSpan Adjust(System.TimeSpan value) { throw null; } - /// - public static Microsoft.Data.SqlClient.Server.SqlMetaData InferFromValue(object value, string name) { throw null; } - } -} -namespace Microsoft.Data.SqlClient.DataClassification -{ - /// - public partial class ColumnSensitivity - { - /// - public ColumnSensitivity(System.Collections.Generic.IList sensitivityProperties) { } - /// - public System.Collections.ObjectModel.ReadOnlyCollection SensitivityProperties { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public partial class InformationType - { - /// - public InformationType(string name, string id) { } - /// - public string Id { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public partial class Label - { - /// - public Label(string name, string id) { } - /// - public string Id { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public enum SensitivityRank - { - /// - NOT_DEFINED = -1, - /// - NONE = 0, - /// - LOW = 10, - /// - MEDIUM = 20, - /// - HIGH = 30, - /// - CRITICAL = 40 - } - /// - public partial class SensitivityClassification - { - /// - public SensitivityClassification(System.Collections.Generic.IList labels, System.Collections.Generic.IList informationTypes, System.Collections.Generic.IList columnSensitivity, SensitivityRank sensitivityRank) { } - /// - public System.Collections.ObjectModel.ReadOnlyCollection ColumnSensitivities { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public System.Collections.ObjectModel.ReadOnlyCollection InformationTypes { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public System.Collections.ObjectModel.ReadOnlyCollection Labels { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public SensitivityRank SensitivityRank { get { throw null; } } - } - /// - public partial class SensitivityProperty - { - /// - public SensitivityProperty(Microsoft.Data.SqlClient.DataClassification.Label label, Microsoft.Data.SqlClient.DataClassification.InformationType informationType, SensitivityRank sensitivityRank) { } - /// - public Microsoft.Data.SqlClient.DataClassification.InformationType InformationType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public Microsoft.Data.SqlClient.DataClassification.Label Label { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public SensitivityRank SensitivityRank { get { throw null; } } - } -} diff --git a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj deleted file mode 100644 index 9ab6b8d80f..0000000000 --- a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj +++ /dev/null @@ -1,32 +0,0 @@ - - - false - net8.0;net6.0;netstandard2.0;netstandard2.1 - netstandard2.1 - $(ObjFolder)$(Configuration)\$(AssemblyName)\ref\ - $(BinFolder)$(Configuration)\$(AssemblyName)\ref\ - $(OutputPath)\$(TargetFramework)\Microsoft.Data.SqlClient.xml - Core $(BaseProduct) - Debug;Release; - netcoreapp - netstandard - AnyCPU;x64;x86 - - - - - - - - - - - - - - - - - - - diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index 6f667a0078..9245f1c9c8 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -20,6 +20,7 @@ Core $(BaseProduct) true $(NoWarn);IL2026;IL2057;IL2072;IL2075 + true $([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)')) diff --git a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs b/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs deleted file mode 100644 index d8bbb83106..0000000000 --- a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs +++ /dev/null @@ -1,2392 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -// NOTE: The current Microsoft.VSDesigner editor attributes are implemented for System.Data.SqlClient, and are not publicly available. -// New attributes that are designed to work with Microsoft.Data.SqlClient and are publicly documented should be included in future. - -[assembly: System.CLSCompliant(true)] -[assembly: System.Resources.NeutralResourcesLanguageAttribute("en-US")] -namespace Microsoft.Data -{ - /// - [System.Serializable] - public sealed partial class OperationAbortedException : System.SystemException - { - internal OperationAbortedException() { } - - private OperationAbortedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - - } -} -namespace Microsoft.Data.Sql -{ - /// - public sealed partial class SqlNotificationRequest - { - /// - public SqlNotificationRequest() { } - /// - public SqlNotificationRequest(string userData, string options, int timeout) { } - /// - public string Options { get { throw null; } set { } } - /// - public int Timeout { get { throw null; } set { } } - /// - public string UserData { get { throw null; } set { } } - } - - /// - public sealed class SqlDataSourceEnumerator : System.Data.Common.DbDataSourceEnumerator - { - /// - public static SqlDataSourceEnumerator Instance {get;} - /// - public override System.Data.DataTable GetDataSources(){ throw null; } - } -} - -namespace Microsoft.Data.SqlClient -{ - /// - public sealed class ActiveDirectoryAuthenticationProvider : SqlAuthenticationProvider - { - /// - public ActiveDirectoryAuthenticationProvider() { } - /// - public ActiveDirectoryAuthenticationProvider(string applicationClientId) { } - /// - public static void ClearUserTokenCache() { } - /// - public ActiveDirectoryAuthenticationProvider(System.Func deviceCodeFlowCallbackMethod, string applicationClientId = null) { } - /// - public override System.Threading.Tasks.Task AcquireTokenAsync(SqlAuthenticationParameters parameters) { throw null; } - /// - public void SetDeviceCodeFlowCallback(System.Func deviceCodeFlowCallbackMethod) { } - /// - public void SetAcquireAuthorizationCodeAsyncCallback(System.Func> acquireAuthorizationCodeAsyncCallback) { } - /// - public void SetIWin32WindowFunc(System.Func iWin32WindowFunc) { } - /// - public override bool IsSupported(SqlAuthenticationMethod authentication) { throw null; } - /// - public override void BeforeLoad(SqlAuthenticationMethod authentication) { } - /// - public override void BeforeUnload(SqlAuthenticationMethod authentication) { } - } - /// - public enum ApplicationIntent - { - /// - ReadOnly = 1, - /// - ReadWrite = 0 - } - - /// - public delegate void OnChangeEventHandler(object sender, Microsoft.Data.SqlClient.SqlNotificationEventArgs e); - /// - public enum PoolBlockingPeriod - { - /// - AlwaysBlock = 1, - /// - Auto = 0, - /// - NeverBlock = 2, - } - /// - public enum SortOrder - { - /// - Unspecified = -1, - /// - Ascending = 0, - /// - Descending = 1 - } - /// - public abstract partial class SqlAuthenticationInitializer - { - /// - protected SqlAuthenticationInitializer() { } - /// - public abstract void Initialize(); - } - /// - public enum SqlAuthenticationMethod - { - /// - NotSpecified = 0, - /// - SqlPassword = 1, - /// - ActiveDirectoryPassword = 2, - /// - ActiveDirectoryIntegrated = 3, - /// - ActiveDirectoryInteractive = 4, - /// - ActiveDirectoryServicePrincipal = 5, - /// - ActiveDirectoryDeviceCodeFlow = 6, - /// - ActiveDirectoryManagedIdentity = 7, - /// - ActiveDirectoryMSI = 8, - /// - ActiveDirectoryDefault = 9, - /// - ActiveDirectoryWorkloadIdentity = 10 - } - /// - public class SqlAuthenticationParameters - { - /// - protected SqlAuthenticationParameters(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, string serverName, string databaseName, string resource, string authority, string userId, string password, System.Guid connectionId, int connectionTimeout) { } - /// - public Microsoft.Data.SqlClient.SqlAuthenticationMethod AuthenticationMethod { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Authority { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public System.Guid ConnectionId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string DatabaseName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Password { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Resource { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string ServerName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string UserId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public int ConnectionTimeout { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public abstract partial class SqlAuthenticationProvider - { - /// - protected SqlAuthenticationProvider() { } - /// - public abstract System.Threading.Tasks.Task AcquireTokenAsync(Microsoft.Data.SqlClient.SqlAuthenticationParameters parameters); - /// - public virtual void BeforeLoad(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod) { } - /// - public virtual void BeforeUnload(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod) { } - /// - public static Microsoft.Data.SqlClient.SqlAuthenticationProvider GetProvider(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod) { throw null; } - /// - public abstract bool IsSupported(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod); - /// - public static bool SetProvider(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, Microsoft.Data.SqlClient.SqlAuthenticationProvider provider) { throw null; } - } - /// - public partial class SqlAuthenticationToken - { - /// - public SqlAuthenticationToken(string accessToken, System.DateTimeOffset expiresOn) { } - /// - public string AccessToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public System.DateTimeOffset ExpiresOn { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public sealed partial class SqlBulkCopy : System.IDisposable - { - /// - public SqlBulkCopy(Microsoft.Data.SqlClient.SqlConnection connection) { } - /// - public SqlBulkCopy(Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlBulkCopyOptions copyOptions, Microsoft.Data.SqlClient.SqlTransaction externalTransaction) { } - /// - public SqlBulkCopy(string connectionString) { } - /// - public SqlBulkCopy(string connectionString, Microsoft.Data.SqlClient.SqlBulkCopyOptions copyOptions) { } - /// - public int BatchSize { get { throw null; } set { } } - /// - public int BulkCopyTimeout { get { throw null; } set { } } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection ColumnMappings { get { throw null; } } - /// - public SqlBulkCopyColumnOrderHintCollection ColumnOrderHints { get { throw null; } } - /// - public string DestinationTableName { get { throw null; } set { } } - /// - public bool EnableStreaming { get { throw null; } set { } } - /// - public int NotifyAfter { get { throw null; } set { } } - /// - public int RowsCopied { get { throw null; } } - /// - public long RowsCopied64 { get { throw null; } } - /// - public event Microsoft.Data.SqlClient.SqlRowsCopiedEventHandler SqlRowsCopied { add { } remove { } } - /// - public void Close() { } - /// - void System.IDisposable.Dispose() { } - /// - public void WriteToServer(System.Data.Common.DbDataReader reader) { } - /// - public void WriteToServer(System.Data.DataTable table) { } - /// - public void WriteToServer(System.Data.DataTable table, System.Data.DataRowState rowState) { } - /// - public void WriteToServer(System.Data.DataRow[] rows) { } - /// - public void WriteToServer(System.Data.IDataReader reader) { } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.Common.DbDataReader reader) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.Common.DbDataReader reader, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataRow[] rows) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataRow[] rows, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataTable table) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataTable table, System.Data.DataRowState rowState) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataTable table, System.Data.DataRowState rowState, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.DataTable table, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.IDataReader reader) { throw null; } - /// - public System.Threading.Tasks.Task WriteToServerAsync(System.Data.IDataReader reader, System.Threading.CancellationToken cancellationToken) { throw null; } - } - /// - public sealed partial class SqlBulkCopyColumnMapping - { - /// - public SqlBulkCopyColumnMapping() { } - /// - public SqlBulkCopyColumnMapping(int sourceColumnOrdinal, int destinationOrdinal) { } - /// - public SqlBulkCopyColumnMapping(int sourceColumnOrdinal, string destinationColumn) { } - /// - public SqlBulkCopyColumnMapping(string sourceColumn, int destinationOrdinal) { } - /// - public SqlBulkCopyColumnMapping(string sourceColumn, string destinationColumn) { } - /// - public string DestinationColumn { get { throw null; } set { } } - /// - public int DestinationOrdinal { get { throw null; } set { } } - /// - public string SourceColumn { get { throw null; } set { } } - /// - public int SourceOrdinal { get { throw null; } set { } } - } - /// - public sealed partial class SqlBulkCopyColumnMappingCollection : System.Collections.CollectionBase - { - internal SqlBulkCopyColumnMappingCollection() { } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping this[int index] { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping bulkCopyColumnMapping) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(int sourceColumnIndex, int destinationColumnIndex) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(int sourceColumnIndex, string destinationColumn) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(string sourceColumn, int destinationColumnIndex) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping Add(string sourceColumn, string destinationColumn) { throw null; } - /// - public new void Clear() { } - /// - public bool Contains(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping value) { throw null; } - /// - public void CopyTo(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping[] array, int index) { } - /// - public int IndexOf(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping value) { throw null; } - /// - public void Insert(int index, Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping value) { } - /// - public void Remove(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping value) { } - /// - public new void RemoveAt(int index) { } - } - /// - public sealed class SqlBulkCopyColumnOrderHint - { - /// - public SqlBulkCopyColumnOrderHint(string column, SortOrder sortOrder) { } - /// - public string Column { get { throw null; } set { } } - /// - public SortOrder SortOrder { get { throw null; } set { } } - } - /// - public sealed class SqlBulkCopyColumnOrderHintCollection : System.Collections.CollectionBase - { - /// - public SqlBulkCopyColumnOrderHint this[int index] { get { throw null; } } - /// - public SqlBulkCopyColumnOrderHint Add(SqlBulkCopyColumnOrderHint columnOrderHint) { throw null; } - /// - public SqlBulkCopyColumnOrderHint Add(string column, SortOrder sortOrder) { throw null; } - /// - public new void Clear() { } - /// - public bool Contains(SqlBulkCopyColumnOrderHint value) { throw null; } - /// - public void CopyTo(SqlBulkCopyColumnOrderHint[] array, int index) { } - /// - public int IndexOf(SqlBulkCopyColumnOrderHint value) { throw null; } - /// - public void Insert(int index, SqlBulkCopyColumnOrderHint columnOrderHint) { } - /// - public void Remove(SqlBulkCopyColumnOrderHint columnOrderHint) { } - /// - public new void RemoveAt(int index) { } - } - /// - [System.FlagsAttribute] - public enum SqlBulkCopyOptions - { - /// - AllowEncryptedValueModifications = 64, - /// - CheckConstraints = 2, - /// - Default = 0, - /// - FireTriggers = 16, - /// - KeepIdentity = 1, - /// - KeepNulls = 8, - /// - TableLock = 4, - /// - UseInternalTransaction = 32, - } - /// - public sealed partial class SqlClientFactory : System.Data.Common.DbProviderFactory, System.IServiceProvider - { - internal SqlClientFactory() { } - /// - public static readonly Microsoft.Data.SqlClient.SqlClientFactory Instance; - /// - public override bool CanCreateDataSourceEnumerator { get { throw null; } } - /// - public override System.Data.Common.DbCommand CreateCommand() { throw null; } - /// - public override System.Data.Common.DbCommandBuilder CreateCommandBuilder() { throw null; } - /// - public override System.Data.Common.DbConnection CreateConnection() { throw null; } - /// - public override System.Data.Common.DbConnectionStringBuilder CreateConnectionStringBuilder() { throw null; } - /// - public override System.Data.Common.DbDataAdapter CreateDataAdapter() { throw null; } - /// - public override System.Data.Common.DbDataSourceEnumerator CreateDataSourceEnumerator() { throw null; } - /// - public override System.Data.Common.DbParameter CreateParameter() { throw null; } - /// - public override System.Security.CodeAccessPermission CreatePermission(System.Security.Permissions.PermissionState state) { throw null; } - object System.IServiceProvider.GetService(System.Type serviceType) { throw null; } - } - /// - public partial class SqlClientLogger - { - /// - public SqlClientLogger() { } - /// - public bool IsLoggingEnabled { get { throw null; } } - /// - public void LogWarning(string type, string method, string message) { } - /// - public bool LogAssert(bool value, string type, string method, string message) { throw null; } - /// - public void LogError(string type, string method, string message) { } - /// - public void LogInfo(string type, string method, string message) { } - } - /// - public static partial class SqlClientMetaDataCollectionNames - { - /// - public static readonly string Columns; - /// - public static readonly string Databases; - /// - public static readonly string ForeignKeys; - /// - public static readonly string IndexColumns; - /// - public static readonly string Indexes; - /// - public static readonly string ProcedureParameters; - /// - public static readonly string Procedures; - /// - public static readonly string Tables; - /// - public static readonly string UserDefinedTypes; - /// - public static readonly string Users; - /// - public static readonly string ViewColumns; - /// - public static readonly string Views; - /// - public static readonly string AllColumns; - /// - public static readonly string ColumnSetColumns; - /// - public static readonly string StructuredTypeMembers; - } - /// - public sealed partial class SqlClientPermission : System.Data.Common.DBDataPermission - { - /// - [System.ObsoleteAttribute("SqlClientPermission() has been deprecated. Use the SqlClientPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202", true)] - public SqlClientPermission() : base(default(System.Security.Permissions.PermissionState)) { } - /// - public SqlClientPermission(System.Security.Permissions.PermissionState state) : base(default(System.Security.Permissions.PermissionState)) { } - /// - [System.ObsoleteAttribute("SqlClientPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated. Use the SqlClientPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202", true)] - public SqlClientPermission(System.Security.Permissions.PermissionState state, bool allowBlankPassword) : base(default(System.Security.Permissions.PermissionState)) { } - /// - public override void Add(string connectionString, string restrictions, System.Data.KeyRestrictionBehavior behavior) { } - /// - public override System.Security.IPermission Copy() { throw null; } - } - /// - [System.AttributeUsageAttribute(System.AttributeTargets.Method | System.AttributeTargets.Constructor | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)] - public sealed partial class SqlClientPermissionAttribute : System.Data.Common.DBDataPermissionAttribute - { - /// - public SqlClientPermissionAttribute(System.Security.Permissions.SecurityAction action) : base(action) { } - /// - public override System.Security.IPermission CreatePermission() { throw null; } - } - /// - public partial class SqlColumnEncryptionCertificateStoreProvider : Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider - { - /// - public const string ProviderName = "MSSQL_CERTIFICATE_STORE"; - /// - public SqlColumnEncryptionCertificateStoreProvider() { } - /// - public override byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey) { throw null; } - /// - public override byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey) { throw null; } - /// - public override byte[] SignColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations) { throw null; } - /// - public override bool VerifyColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations, byte[] signature) { throw null; } - } - /// - public partial class SqlColumnEncryptionCngProvider : Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider - { - /// - public const string ProviderName = "MSSQL_CNG_STORE"; - /// - public SqlColumnEncryptionCngProvider() { } - /// - public override byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey) { throw null; } - /// - public override byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey) { throw null; } - /// - public override byte[] SignColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations) { throw null; } - /// - public override bool VerifyColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations, byte[] signature) { throw null; } - } - /// - public partial class SqlColumnEncryptionCspProvider : Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider - { - /// - public const string ProviderName = "MSSQL_CSP_PROVIDER"; - /// - public SqlColumnEncryptionCspProvider() { } - /// - public override byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey) { throw null; } - /// - public override byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey) { throw null; } - /// - public override byte[] SignColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations) { throw null; } - /// - public override bool VerifyColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations, byte[] signature) { throw null; } - } - /// - public abstract partial class SqlColumnEncryptionKeyStoreProvider - { - /// - protected SqlColumnEncryptionKeyStoreProvider() { } - /// - public abstract byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey); - /// - public abstract byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey); - /// - public virtual byte[] SignColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations) { throw null; } - /// - public virtual bool VerifyColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations, byte[] signature) { throw null; } - /// - public virtual System.TimeSpan? ColumnEncryptionKeyCacheTtl { get { throw null; } set { } } - } - /// - [System.ComponentModel.DefaultEventAttribute("RecordsAffected")] - [System.ComponentModel.ToolboxItemAttribute(true)] - // TODO: Add designer attribute when Microsoft.VSDesigner.Data.VS.SqlCommandDesigner uses Microsoft.Data.SqlClient - public sealed partial class SqlCommand : System.Data.Common.DbCommand, System.ICloneable - { - /// - public SqlCommand() { } - /// - public SqlCommand(string cmdText) { } - /// - public SqlCommand(string cmdText, Microsoft.Data.SqlClient.SqlConnection connection) { } - /// - public SqlCommand(string cmdText, Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlTransaction transaction) { } - /// - public SqlCommand(string cmdText, Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlTransaction transaction, Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting columnEncryptionSetting) { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting ColumnEncryptionSetting { get { throw null; } } - /// - [System.ComponentModel.DefaultValueAttribute("")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public override string CommandText { get { throw null; } set { } } - /// - public override int CommandTimeout { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(1)] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public override System.Data.CommandType CommandType { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlConnection Connection { get { throw null; } set { } } - /// - protected override System.Data.Common.DbConnection DbConnection { get { throw null; } set { } } - /// - protected override System.Data.Common.DbParameterCollection DbParameterCollection { get { throw null; } } - /// - protected override System.Data.Common.DbTransaction DbTransaction { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DefaultValueAttribute(true)] - [System.ComponentModel.DesignOnlyAttribute(true)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool DesignTimeVisible { get { throw null; } set { } } - /// - public bool EnableOptimizedParameterBinding { get { throw null; } set { } } - /// - public new Microsoft.Data.SqlClient.SqlParameterCollection Parameters { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public new Microsoft.Data.SqlClient.SqlTransaction Transaction { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(3)] - public override System.Data.UpdateRowSource UpdatedRowSource { get { throw null; } set { } } - /// - public event System.Data.StatementCompletedEventHandler StatementCompleted { add { } remove { } } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public System.IAsyncResult BeginExecuteNonQuery() { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public System.IAsyncResult BeginExecuteNonQuery(System.AsyncCallback callback, object stateObject) { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public System.IAsyncResult BeginExecuteReader() { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public System.IAsyncResult BeginExecuteReader(System.AsyncCallback callback, object stateObject) { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public System.IAsyncResult BeginExecuteReader(System.AsyncCallback callback, object stateObject, System.Data.CommandBehavior behavior) { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public System.IAsyncResult BeginExecuteReader(System.Data.CommandBehavior behavior) { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public System.IAsyncResult BeginExecuteXmlReader() { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public System.IAsyncResult BeginExecuteXmlReader(System.AsyncCallback callback, object stateObject) { throw null; } - /// - public override void Cancel() { } - object System.ICloneable.Clone() { throw null; } - /// - public Microsoft.Data.SqlClient.SqlCommand Clone() { throw null; } - /// - protected override System.Data.Common.DbParameter CreateDbParameter() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlParameter CreateParameter() { throw null; } - /// - protected override void Dispose(bool disposing) { } - /// - public int EndExecuteNonQuery(System.IAsyncResult asyncResult) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlDataReader EndExecuteReader(System.IAsyncResult asyncResult) { throw null; } - /// - public System.Xml.XmlReader EndExecuteXmlReader(System.IAsyncResult asyncResult) { throw null; } - /// - protected override System.Data.Common.DbDataReader ExecuteDbDataReader(System.Data.CommandBehavior behavior) { throw null; } - /// - protected override System.Threading.Tasks.Task ExecuteDbDataReaderAsync(System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override int ExecuteNonQuery() { throw null; } - /// - public override System.Threading.Tasks.Task ExecuteNonQueryAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlDataReader ExecuteReader() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlDataReader ExecuteReader(System.Data.CommandBehavior behavior) { throw null; } - /// - public new System.Threading.Tasks.Task ExecuteReaderAsync() { throw null; } - /// - public new System.Threading.Tasks.Task ExecuteReaderAsync(System.Data.CommandBehavior behavior) { throw null; } - /// - public new System.Threading.Tasks.Task ExecuteReaderAsync(System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public new System.Threading.Tasks.Task ExecuteReaderAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override object ExecuteScalar() { throw null; } - /// - public override System.Threading.Tasks.Task ExecuteScalarAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public System.Xml.XmlReader ExecuteXmlReader() { throw null; } - /// - public System.Threading.Tasks.Task ExecuteXmlReaderAsync() { throw null; } - /// - public System.Threading.Tasks.Task ExecuteXmlReaderAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override void Prepare() { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public Microsoft.Data.Sql.SqlNotificationRequest Notification { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(true)] - public bool NotificationAutoEnlist { get { throw null; } set { } } - /// - public void RegisterColumnEncryptionKeyStoreProvidersOnCommand(System.Collections.Generic.IDictionary customProviders) { } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)] - public void ResetCommandTimeout() { } - /// - public SqlRetryLogicBaseProvider RetryLogicProvider { get { throw null; } set { } } - } - /// - public sealed class SqlCommandBuilder : System.Data.Common.DbCommandBuilder - { - /// - public SqlCommandBuilder() { } - /// - public SqlCommandBuilder(Microsoft.Data.SqlClient.SqlDataAdapter adapter) { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override System.Data.Common.CatalogLocation CatalogLocation { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string CatalogSeparator { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlDataAdapter DataAdapter { get { throw null; } set { } } - /// - public static void DeriveParameters(Microsoft.Data.SqlClient.SqlCommand command) { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string QuotePrefix { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string QuoteSuffix { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string SchemaSeparator { get { throw null; } set { } } - /// - protected override void ApplyParameterInfo(System.Data.Common.DbParameter parameter, System.Data.DataRow datarow, System.Data.StatementType statementType, bool whereClause) { } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetDeleteCommand() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetDeleteCommand(bool useColumnsForParameterNames) { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetInsertCommand() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetInsertCommand(bool useColumnsForParameterNames) { throw null; } - /// - protected override string GetParameterName(int parameterOrdinal) { throw null; } - /// - protected override string GetParameterName(string parameterName) { throw null; } - /// - protected override string GetParameterPlaceholder(int parameterOrdinal) { throw null; } - /// - protected override System.Data.DataTable GetSchemaTable(System.Data.Common.DbCommand srcCommand) { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetUpdateCommand() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlCommand GetUpdateCommand(bool useColumnsForParameterNames) { throw null; } - /// - protected override System.Data.Common.DbCommand InitializeCommand(System.Data.Common.DbCommand command) { throw null; } - /// - public override string QuoteIdentifier(string unquotedIdentifier) { throw null; } - /// - protected override void SetRowUpdatingHandler(System.Data.Common.DbDataAdapter adapter) { } - /// - public override string UnquoteIdentifier(string quotedIdentifier) { throw null; } - } - /// - public enum SqlCommandColumnEncryptionSetting - { - /// - Disabled = 3, - /// - Enabled = 1, - /// - ResultSetOnly = 2, - /// - UseConnectionSetting = 0, - } - /// - [System.ComponentModel.DefaultEventAttribute("InfoMessage")] - public sealed partial class SqlConnection : System.Data.Common.DbConnection, System.ICloneable - { - /// - public SqlConnection() { } - /// - public SqlConnection(string connectionString) { } - /// - public SqlConnection(string connectionString, Microsoft.Data.SqlClient.SqlCredential credential) { } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public string AccessToken { get { throw null; } set { } } - /// - public System.Func> AccessTokenCallback { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public System.Guid ClientConnectionId { get { throw null; } } - object System.ICloneable.Clone() { throw null; } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public static System.TimeSpan ColumnEncryptionKeyCacheTtl { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public static bool ColumnEncryptionQueryMetadataCacheEnabled { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public static System.Collections.Generic.IDictionary> ColumnEncryptionTrustedMasterKeyPaths { get { throw null; } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public int CommandTimeout { get { throw null; } } - /// - [System.ComponentModel.DefaultValueAttribute("")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - [System.ComponentModel.SettingsBindableAttribute(true)] - public override string ConnectionString { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override int ConnectionTimeout { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public Microsoft.Data.SqlClient.SqlCredential Credential { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override string Database { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(true)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override string DataSource { get { throw null; } } - /// - protected override System.Data.Common.DbProviderFactory DbProviderFactory { get { throw null; } } - /// - public bool FireInfoMessageEventOnUserErrors { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public int PacketSize { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override string ServerVersion { get { throw null; } } - /// - public int ServerProcessId { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public override System.Data.ConnectionState State { get { throw null; } } - /// - [System.ComponentModel.DefaultValueAttribute(false)] - public bool StatisticsEnabled { get { throw null; } set { } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public string WorkstationId { get { throw null; } } - /// - public event Microsoft.Data.SqlClient.SqlInfoMessageEventHandler InfoMessage { add { } remove { } } - /// - protected override System.Data.Common.DbTransaction BeginDbTransaction(System.Data.IsolationLevel isolationLevel) { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlTransaction BeginTransaction() { throw null; } - /// - public new Microsoft.Data.SqlClient.SqlTransaction BeginTransaction(System.Data.IsolationLevel iso) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlTransaction BeginTransaction(System.Data.IsolationLevel iso, string transactionName) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlTransaction BeginTransaction(string transactionName) { throw null; } - /// - public override void ChangeDatabase(string database) { } - /// - public static void ChangePassword(string connectionString, Microsoft.Data.SqlClient.SqlCredential credential, System.Security.SecureString newSecurePassword) { } - /// - public static void ChangePassword(string connectionString, string newPassword) { } - /// - public static void ClearAllPools() { } - /// - public static void ClearPool(Microsoft.Data.SqlClient.SqlConnection connection) { } - /// - public override void Close() { } - /// - public new Microsoft.Data.SqlClient.SqlCommand CreateCommand() { throw null; } - /// - protected override System.Data.Common.DbCommand CreateDbCommand() { throw null; } - /// - protected override void Dispose(bool disposing) { } - /// - public void EnlistDistributedTransaction(System.EnterpriseServices.ITransaction transaction) { } - /// - public override void EnlistTransaction(System.Transactions.Transaction transaction) { } - /// - public override System.Data.DataTable GetSchema() { throw null; } - /// - public override System.Data.DataTable GetSchema(string collectionName) { throw null; } - /// - public override System.Data.DataTable GetSchema(string collectionName, string[] restrictionValues) { throw null; } - /// - public override void Open() { } - /// - public void Open(SqlConnectionOverrides overrides) { } - /// - public override System.Threading.Tasks.Task OpenAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public static void RegisterColumnEncryptionKeyStoreProviders(System.Collections.Generic.IDictionary customProviders) { } - /// - public void RegisterColumnEncryptionKeyStoreProvidersOnConnection(System.Collections.Generic.IDictionary customProviders) { } - /// - public void ResetStatistics() { } - /// - public System.Collections.IDictionary RetrieveStatistics() { throw null; } - /// - public System.Collections.Generic.IDictionary RetrieveInternalInfo() { throw null; } - /// - public SqlRetryLogicBaseProvider RetryLogicProvider { get { throw null; } set { } } - } - /// - public enum SqlConnectionColumnEncryptionSetting - { - /// - Disabled = 0, - /// - Enabled = 1, - } - - /// - public enum SqlConnectionAttestationProtocol - { - /// - NotSpecified = 0, - - /// - AAS = 1, - - /// - None = 2, - - /// - HGS = 3 - } - - /// - public enum SqlConnectionIPAddressPreference - { - /// - IPv4First = 0, // default - - /// - IPv6First = 1, - - /// - UsePlatformDefault = 2 - } - - /// - public sealed class SqlConnectionEncryptOption - { - /// - public static SqlConnectionEncryptOption Parse(string value) => throw null; - - /// - public static bool TryParse(string value, out SqlConnectionEncryptOption result) => throw null; - - /// - public static SqlConnectionEncryptOption Optional => throw null; - - /// - public static SqlConnectionEncryptOption Mandatory => throw null; - - /// - public static SqlConnectionEncryptOption Strict => throw null; - - /// - public static implicit operator SqlConnectionEncryptOption(bool value) => throw null; - - /// - public static implicit operator bool(SqlConnectionEncryptOption value) => throw null; - - /// - public override string ToString() { throw null; } - - /// - public override bool Equals(object obj) { throw null; } - - /// - public override int GetHashCode() { throw null; } - } - - /// - public enum SqlConnectionOverrides - { - /// - None = 0, - /// - OpenWithoutRetry = 1, - } - - /// - [System.ComponentModel.DefaultPropertyAttribute("DataSource")] - public sealed partial class SqlConnectionStringBuilder : System.Data.Common.DbConnectionStringBuilder - { - /// - public SqlConnectionStringBuilder() { } - /// - public SqlConnectionStringBuilder(string connectionString) { } - /// - [System.ComponentModel.DisplayNameAttribute("Application Intent")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.ApplicationIntent ApplicationIntent { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Application Name")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string ApplicationName { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("AttachDbFilename")] - [System.ComponentModel.EditorAttribute("System.Windows.Forms.Design.FileNameEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string AttachDBFilename { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Authentication")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.SqlAuthenticationMethod Authentication { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Column Encryption Setting")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.SqlConnectionColumnEncryptionSetting ColumnEncryptionSetting { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Command Timeout")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int CommandTimeout { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DisplayNameAttribute("Connection Reset")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - [System.ObsoleteAttribute("ConnectionReset has been deprecated. SqlConnection will ignore the 'connection reset' keyword and always reset the connection.")] - public bool ConnectionReset { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Connect Retry Count")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int ConnectRetryCount { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Connect Retry Interval")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int ConnectRetryInterval { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Connect Timeout")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int ConnectTimeout { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Context Connection")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - [System.ObsoleteAttribute("ContextConnection has been deprecated. SqlConnection will ignore the 'Context Connection' keyword.")] - public bool ContextConnection { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Current Language")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string CurrentLanguage { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Data Source")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string DataSource { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Enclave Attestation Url")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string EnclaveAttestationUrl { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Attestation Protocol")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.SqlConnectionAttestationProtocol AttestationProtocol { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("IP Address Preference")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.SqlConnectionIPAddressPreference IPAddressPreference { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Encrypt")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public SqlConnectionEncryptOption Encrypt { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Host Name In Certificate")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string HostNameInCertificate { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Server Certificate")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string ServerCertificate { get { throw null; } set { } } - - /// - [System.ComponentModel.DisplayNameAttribute("Enlist")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool Enlist { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Failover Partner")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string FailoverPartner { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Failover Partner SPN")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string FailoverPartnerSPN { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Initial Catalog")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string InitialCatalog { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Integrated Security")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool IntegratedSecurity { get { throw null; } set { } } - /// - public override bool IsFixedSize { get { throw null; } } - /// - public override object this[string keyword] { get { throw null; } set { } } - /// - public override System.Collections.ICollection Keys { get { throw null; } } - /// - [System.ComponentModel.DisplayNameAttribute("Load Balance Timeout")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int LoadBalanceTimeout { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Max Pool Size")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int MaxPoolSize { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Min Pool Size")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int MinPoolSize { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Multiple Active Result Sets")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool MultipleActiveResultSets { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Multi Subnet Failover")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool MultiSubnetFailover { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Network Library")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string NetworkLibrary { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Packet Size")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public int PacketSize { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Password")] - [System.ComponentModel.PasswordPropertyTextAttribute(true)] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string Password { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Persist Security Info")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool PersistSecurityInfo { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Pool Blocking Period")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public Microsoft.Data.SqlClient.PoolBlockingPeriod PoolBlockingPeriod { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Pooling")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool Pooling { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Replication")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool Replication { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Server SPN")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string ServerSPN { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Transaction Binding")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string TransactionBinding { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Transparent Network IP Resolution")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool TransparentNetworkIPResolution { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Trust Server Certificate")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool TrustServerCertificate { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("Type System Version")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string TypeSystemVersion { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("User ID")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string UserID { get { throw null; } set { } } - /// - [System.ComponentModel.DisplayNameAttribute("User Instance")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public bool UserInstance { get { throw null; } set { } } - /// - public override System.Collections.ICollection Values { get { throw null; } } - /// - [System.ComponentModel.DisplayNameAttribute("Workstation ID")] - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public string WorkstationID { get { throw null; } set { } } - /// - public override void Clear() { } - /// - public override bool ContainsKey(string keyword) { throw null; } - /// - public override bool Remove(string keyword) { throw null; } - /// - public override bool ShouldSerialize(string keyword) { throw null; } - /// - public override bool TryGetValue(string keyword, out object value) { throw null; } - } - /// - public sealed class SqlCredential - { - /// - public SqlCredential(string userId, System.Security.SecureString password) { } - /// - public System.Security.SecureString Password { get { throw null; } } - /// - public string UserId { get { throw null; } } - } - /// - [System.ComponentModel.DefaultEventAttribute("RowUpdated")] - // TODO: Add designer and toolbox attribute when Microsoft.VSDesigner.Data.VS.SqlDataAdapterDesigner uses Microsoft.Data.SqlClient - public sealed partial class SqlDataAdapter : System.Data.Common.DbDataAdapter, System.Data.IDataAdapter, System.Data.IDbDataAdapter, System.ICloneable - { - /// - public SqlDataAdapter() { } - /// - public SqlDataAdapter(Microsoft.Data.SqlClient.SqlCommand selectCommand) { } - /// - public SqlDataAdapter(string selectCommandText, Microsoft.Data.SqlClient.SqlConnection selectConnection) { } - /// - public SqlDataAdapter(string selectCommandText, string selectConnectionString) { } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlCommand DeleteCommand { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlCommand InsertCommand { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlCommand SelectCommand { get { throw null; } set { } } - System.Data.IDbCommand System.Data.IDbDataAdapter.DeleteCommand { get { throw null; } set { } } - System.Data.IDbCommand System.Data.IDbDataAdapter.InsertCommand { get { throw null; } set { } } - System.Data.IDbCommand System.Data.IDbDataAdapter.SelectCommand { get { throw null; } set { } } - System.Data.IDbCommand System.Data.IDbDataAdapter.UpdateCommand { get { throw null; } set { } } - /// - public override int UpdateBatchSize { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(null)] - public new Microsoft.Data.SqlClient.SqlCommand UpdateCommand { get { throw null; } set { } } - /// - public event Microsoft.Data.SqlClient.SqlRowUpdatedEventHandler RowUpdated { add { } remove { } } - /// - public event Microsoft.Data.SqlClient.SqlRowUpdatingEventHandler RowUpdating { add { } remove { } } - /// - protected override int AddToBatch(System.Data.IDbCommand command) { throw null; } - /// - protected override void ClearBatch() { } - /// - protected override System.Data.Common.RowUpdatedEventArgs CreateRowUpdatedEvent(System.Data.DataRow dataRow, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) { throw null; } - /// - protected override System.Data.Common.RowUpdatingEventArgs CreateRowUpdatingEvent(System.Data.DataRow dataRow, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) { throw null; } - /// - protected override int ExecuteBatch() { throw null; } - /// - protected override System.Data.IDataParameter GetBatchedParameter(int commandIdentifier, int parameterIndex) { throw null; } - /// - protected override bool GetBatchedRecordsAffected(int commandIdentifier, out int recordsAffected, out System.Exception error) { throw null; } - /// - protected override void InitializeBatching() { } - /// - protected override void OnRowUpdated(System.Data.Common.RowUpdatedEventArgs value) { } - /// - protected override void OnRowUpdating(System.Data.Common.RowUpdatingEventArgs value) { } - object System.ICloneable.Clone() { throw null; } - /// - protected override void TerminateBatching() { } - } - /// - public partial class SqlDataReader : System.Data.Common.DbDataReader, System.Data.IDataReader, System.IDisposable - { - internal SqlDataReader() { } - /// - protected Microsoft.Data.SqlClient.SqlConnection Connection { get { throw null; } } - /// - public override int Depth { get { throw null; } } - /// - public override int FieldCount { get { throw null; } } - /// - public override bool HasRows { get { throw null; } } - /// - public override bool IsClosed { get { throw null; } } - /// - public override object this[int i] { get { throw null; } } - /// - public override object this[string name] { get { throw null; } } - /// - public override int RecordsAffected { get { throw null; } } - /// - public Microsoft.Data.SqlClient.DataClassification.SensitivityClassification SensitivityClassification { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public override int VisibleFieldCount { get { throw null; } } - /// - public override void Close() { } - /// - public override bool GetBoolean(int i) { throw null; } - /// - public override byte GetByte(int i) { throw null; } - /// - public override long GetBytes(int i, long dataIndex, byte[] buffer, int bufferIndex, int length) { throw null; } - /// - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override char GetChar(int i) { throw null; } - /// - public override long GetChars(int i, long dataIndex, char[] buffer, int bufferIndex, int length) { throw null; } - /// - public override string GetDataTypeName(int i) { throw null; } - /// - public override System.DateTime GetDateTime(int i) { throw null; } - /// - public virtual System.DateTimeOffset GetDateTimeOffset(int i) { throw null; } - /// - public override decimal GetDecimal(int i) { throw null; } - /// - public override double GetDouble(int i) { throw null; } - /// - public override System.Collections.IEnumerator GetEnumerator() { throw null; } - /// - public override System.Type GetFieldType(int i) { throw null; } - /// - public override T GetFieldValue(int i) { throw null; } - /// - public override System.Threading.Tasks.Task GetFieldValueAsync(int i, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override float GetFloat(int i) { throw null; } - /// - public override System.Guid GetGuid(int i) { throw null; } - /// - public override short GetInt16(int i) { throw null; } - /// - public override int GetInt32(int i) { throw null; } - /// - public override long GetInt64(int i) { throw null; } - /// - public override string GetName(int i) { throw null; } - /// - public override int GetOrdinal(string name) { throw null; } - /// - public override System.Type GetProviderSpecificFieldType(int i) { throw null; } - /// - public override object GetProviderSpecificValue(int i) { throw null; } - /// - public override int GetProviderSpecificValues(object[] values) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBinary GetSqlBinary(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBoolean GetSqlBoolean(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlByte GetSqlByte(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBytes GetSqlBytes(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlChars GetSqlChars(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDateTime GetSqlDateTime(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDecimal GetSqlDecimal(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDouble GetSqlDouble(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlGuid GetSqlGuid(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt16 GetSqlInt16(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt32 GetSqlInt32(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt64 GetSqlInt64(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlMoney GetSqlMoney(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlSingle GetSqlSingle(int i) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlString GetSqlString(int i) { throw null; } - /// - public virtual object GetSqlValue(int i) { throw null; } - /// - public virtual int GetSqlValues(object[] values) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlXml GetSqlXml(int i) { throw null; } - /// - public override System.Data.DataTable GetSchemaTable() { throw null; } - /// - public override System.IO.Stream GetStream(int i) { throw null; } - /// - public override string GetString(int i) { throw null; } - /// - public override System.IO.TextReader GetTextReader(int i) { throw null; } - /// - public virtual System.TimeSpan GetTimeSpan(int i) { throw null; } - /// - public override object GetValue(int i) { throw null; } - /// - public override int GetValues(object[] values) { throw null; } - /// - public virtual System.Xml.XmlReader GetXmlReader(int i) { throw null; } - /// - protected internal bool IsCommandBehavior(System.Data.CommandBehavior condition) { throw null; } - /// - public override bool IsDBNull(int i) { throw null; } - /// - public override System.Threading.Tasks.Task IsDBNullAsync(int i, System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override bool NextResult() { throw null; } - /// - public override System.Threading.Tasks.Task NextResultAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - /// - public override bool Read() { throw null; } - /// - public override System.Threading.Tasks.Task ReadAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - System.Data.IDataReader System.Data.IDataRecord.GetData(int i) { throw null; } - } - /// - [System.Runtime.InteropServices.ClassInterfaceAttribute(System.Runtime.InteropServices.ClassInterfaceType.None)] - [System.Runtime.InteropServices.ComVisibleAttribute(true)] - [System.Runtime.InteropServices.GuidAttribute("afef65ad-4577-447a-a148-83acadd3d4b9")] - [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name = "FullTrust")] - public sealed partial class SQLDebugging - { - /// - public SQLDebugging() { } - } - /// - public sealed partial class SqlDependency - { - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public SqlDependency() { } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public SqlDependency(Microsoft.Data.SqlClient.SqlCommand command) { } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public SqlDependency(Microsoft.Data.SqlClient.SqlCommand command, string options, int timeout) { } - /// - public bool HasChanges { get { throw null; } } - /// - public string Id { get { throw null; } } - /// - public event Microsoft.Data.SqlClient.OnChangeEventHandler OnChange { add { } remove { } } - /// - public void AddCommandDependency(Microsoft.Data.SqlClient.SqlCommand command) { } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public static bool Start(string connectionString) { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public static bool Start(string connectionString, string queue) { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public static bool Stop(string connectionString) { throw null; } - /// - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading = true)] - public static bool Stop(string connectionString, string queue) { throw null; } - } - /// - public sealed partial class SqlError - { - internal SqlError() { } - /// - public byte Class { get { throw null; } } - /// - public int LineNumber { get { throw null; } } - /// - public string Message { get { throw null; } } - /// - public int Number { get { throw null; } } - /// - public string Procedure { get { throw null; } } - /// - public string Server { get { throw null; } } - /// - public string Source { get { throw null; } } - /// - public byte State { get { throw null; } } - /// - public override string ToString() { throw null; } - } - /// - [System.ComponentModel.ListBindableAttribute(false)] - public sealed partial class SqlErrorCollection : System.Collections.ICollection, System.Collections.IEnumerable - { - internal SqlErrorCollection() { } - /// - public int Count { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlError this[int index] { get { throw null; } } - /// - bool System.Collections.ICollection.IsSynchronized { get { throw null; } } - /// - object System.Collections.ICollection.SyncRoot { get { throw null; } } - /// - public void CopyTo(System.Array array, int index) { } - /// - public void CopyTo(Microsoft.Data.SqlClient.SqlError[] array, int index) { } - /// - public System.Collections.IEnumerator GetEnumerator() { throw null; } - } - /// - [System.Serializable] - public sealed partial class SqlException : System.Data.Common.DbException - { - internal SqlException() { } - private SqlException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - - /// - public byte Class { get { throw null; } } - /// - public System.Guid ClientConnectionId { get { throw null; } } - /// - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)] - public Microsoft.Data.SqlClient.SqlErrorCollection Errors { get { throw null; } } - /// - public int LineNumber { get { throw null; } } - /// - public int Number { get { throw null; } } - /// - public string Procedure { get { throw null; } } - /// - public string Server { get { throw null; } } - /// - public override string Source { get { throw null; } } - /// - public byte State { get { throw null; } } - /// - [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] - public override void GetObjectData(System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext context) { } - /// - public override string ToString() { throw null; } - } - /// - public sealed partial class SqlInfoMessageEventArgs : System.EventArgs - { - internal SqlInfoMessageEventArgs() { } - /// - public Microsoft.Data.SqlClient.SqlErrorCollection Errors { get { throw null; } } - /// - public string Message { get { throw null; } } - /// - public string Source { get { throw null; } } - /// - public override string ToString() { throw null; } - } - /// - public delegate void SqlInfoMessageEventHandler(object sender, Microsoft.Data.SqlClient.SqlInfoMessageEventArgs e); - /// - public partial class SqlNotificationEventArgs : System.EventArgs - { - /// - public SqlNotificationEventArgs(Microsoft.Data.SqlClient.SqlNotificationType type, Microsoft.Data.SqlClient.SqlNotificationInfo info, Microsoft.Data.SqlClient.SqlNotificationSource source) { } - /// - public Microsoft.Data.SqlClient.SqlNotificationInfo Info { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlNotificationSource Source { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlNotificationType Type { get { throw null; } } - } - /// - public enum SqlNotificationInfo - { - /// - AlreadyChanged = -2, - /// - Alter = 5, - /// - Delete = 3, - /// - Drop = 4, - /// - Error = 7, - /// - Expired = 12, - /// - Insert = 1, - /// - Invalid = 9, - /// - Isolation = 11, - /// - Merge = 16, - /// - Options = 10, - /// - PreviousFire = 14, - /// - Query = 8, - /// - Resource = 13, - /// - Restart = 6, - /// - TemplateLimit = 15, - /// - Truncate = 0, - /// - Unknown = -1, - /// - Update = 2 - } - /// - public enum SqlNotificationSource - { - /// - Client = -2, - /// - Data = 0, - /// - Database = 3, - /// - Environment = 6, - /// - Execution = 7, - /// - Object = 2, - /// - Owner = 8, - /// - Statement = 5, - /// - System = 4, - /// - Timeout = 1, - /// - Unknown = -1 - } - /// - public enum SqlNotificationType - { - /// - Change = 0, - /// - Subscribe = 1, - /// - Unknown = -1 - } - /// - public sealed partial class SqlParameter : System.Data.Common.DbParameter, System.Data.IDataParameter, System.Data.IDbDataParameter, System.ICloneable - { - /// - public SqlParameter() { } - /// - public SqlParameter(string parameterName, System.Data.SqlDbType dbType) { } - /// - public SqlParameter(string parameterName, System.Data.SqlDbType dbType, int size) { } - /// - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - public SqlParameter(string parameterName, System.Data.SqlDbType dbType, int size, System.Data.ParameterDirection direction, bool isNullable, byte precision, byte scale, string sourceColumn, System.Data.DataRowVersion sourceVersion, object value) { } - /// - public SqlParameter(string parameterName, System.Data.SqlDbType dbType, int size, System.Data.ParameterDirection direction, byte precision, byte scale, string sourceColumn, System.Data.DataRowVersion sourceVersion, bool sourceColumnNullMapping, object value, string xmlSchemaCollectionDatabase, string xmlSchemaCollectionOwningSchema, string xmlSchemaCollectionName) { } - /// - public SqlParameter(string parameterName, System.Data.SqlDbType dbType, int size, string sourceColumn) { } - /// - public SqlParameter(string parameterName, object value) { } - object System.ICloneable.Clone() { throw null; } - /// - [System.ComponentModel.BrowsableAttribute(false)] - public System.Data.SqlTypes.SqlCompareOptions CompareInfo { get { throw null; } set { } } - /// - public override System.Data.DbType DbType { get { throw null; } set { } } - /// - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - public override System.Data.ParameterDirection Direction { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute(false)] - public bool ForceColumnEncryption { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } - /// - public override bool IsNullable { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - public int LocaleId { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - public int Offset { get { throw null; } set { } } - /// - public override string ParameterName { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute((byte)0)] - public new byte Precision { get { throw null; } set { } } - /// - [System.ComponentModel.DefaultValueAttribute((byte)0)] - public new byte Scale { get { throw null; } set { } } - /// - public override int Size { get { throw null; } set { } } - /// - public override string SourceColumn { get { throw null; } set { } } - /// - public override bool SourceColumnNullMapping { get { throw null; } set { } } - /// - public override System.Data.DataRowVersion SourceVersion { get { throw null; } set { } } - /// - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - [System.Data.Common.DbProviderSpecificTypePropertyAttribute(true)] - public System.Data.SqlDbType SqlDbType { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public object SqlValue { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - public string TypeName { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - public string UdtTypeName { get { throw null; } set { } } - /// - [System.ComponentModel.RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties.All)] - [System.ComponentModel.TypeConverterAttribute(typeof(System.ComponentModel.StringConverter))] - public override object Value { get { throw null; } set { } } - /// - public string XmlSchemaCollectionDatabase { get { throw null; } set { } } - /// - public string XmlSchemaCollectionName { get { throw null; } set { } } - /// - public string XmlSchemaCollectionOwningSchema { get { throw null; } set { } } - /// - public override void ResetDbType() { } - /// - public void ResetSqlDbType() { } - /// - public override string ToString() { throw null; } - } - /// - [System.ComponentModel.ListBindableAttribute(false)] - public sealed partial class SqlParameterCollection : System.Data.Common.DbParameterCollection - { - internal SqlParameterCollection() { } - /// - public override int Count { get { throw null; } } - /// - public override bool IsFixedSize { get { throw null; } } - /// - public override bool IsReadOnly { get { throw null; } } - /// - public override bool IsSynchronized { get { throw null; } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public new Microsoft.Data.SqlClient.SqlParameter this[int index] { get { throw null; } set { } } - /// - [System.ComponentModel.BrowsableAttribute(false)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(0)] - public new Microsoft.Data.SqlClient.SqlParameter this[string parameterName] { get { throw null; } set { } } - /// - public override object SyncRoot { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SqlParameter Add(Microsoft.Data.SqlClient.SqlParameter value) { throw null; } - /// - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int Add(object value) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlParameter Add(string parameterName, System.Data.SqlDbType sqlDbType) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlParameter Add(string parameterName, System.Data.SqlDbType sqlDbType, int size) { throw null; } - /// - public Microsoft.Data.SqlClient.SqlParameter Add(string parameterName, System.Data.SqlDbType sqlDbType, int size, string sourceColumn) { throw null; } - /// - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("Add(String parameterName, Object value) has been deprecated. Use AddWithValue(String parameterName, Object value). http://go.microsoft.com/fwlink/?linkid=14202", false)] - public Microsoft.Data.SqlClient.SqlParameter Add(string parameterName, object value) { throw null; } - /// - public void AddRange(Microsoft.Data.SqlClient.SqlParameter[] values) { } - /// - public override void AddRange(System.Array values) { } - /// - public Microsoft.Data.SqlClient.SqlParameter AddWithValue(string parameterName, object value) { throw null; } - /// - public override void Clear() { } - /// - public bool Contains(Microsoft.Data.SqlClient.SqlParameter value) { throw null; } - /// - public override bool Contains(object value) { throw null; } - /// - public override bool Contains(string value) { throw null; } - /// - public override void CopyTo(System.Array array, int index) { } - /// - public void CopyTo(Microsoft.Data.SqlClient.SqlParameter[] array, int index) { } - /// - public override System.Collections.IEnumerator GetEnumerator() { throw null; } - /// - protected override System.Data.Common.DbParameter GetParameter(int index) { throw null; } - /// - protected override System.Data.Common.DbParameter GetParameter(string parameterName) { throw null; } - /// - public int IndexOf(Microsoft.Data.SqlClient.SqlParameter value) { throw null; } - /// - public override int IndexOf(object value) { throw null; } - /// - public override int IndexOf(string parameterName) { throw null; } - /// - public void Insert(int index, Microsoft.Data.SqlClient.SqlParameter value) { } - /// - public override void Insert(int index, object value) { } - /// - public void Remove(Microsoft.Data.SqlClient.SqlParameter value) { } - /// - public override void Remove(object value) { } - /// - public override void RemoveAt(int index) { } - /// - public override void RemoveAt(string parameterName) { } - /// - protected override void SetParameter(int index, System.Data.Common.DbParameter value) { } - /// - protected override void SetParameter(string parameterName, System.Data.Common.DbParameter value) { } - } - /// - public partial class SqlRowsCopiedEventArgs : System.EventArgs - { - /// - public SqlRowsCopiedEventArgs(long rowsCopied) { } - /// - public bool Abort { get { throw null; } set { } } - /// - public long RowsCopied { get { throw null; } } - } - /// - public delegate void SqlRowsCopiedEventHandler(object sender, Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs e); - /// - public sealed partial class SqlRowUpdatedEventArgs : System.Data.Common.RowUpdatedEventArgs - { - /// - public SqlRowUpdatedEventArgs(System.Data.DataRow row, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) - : base(row, command, statementType, tableMapping) { } - /// - public new Microsoft.Data.SqlClient.SqlCommand Command { get { throw null; } } - } - /// - public delegate void SqlRowUpdatedEventHandler(object sender, Microsoft.Data.SqlClient.SqlRowUpdatedEventArgs e); - /// - public sealed partial class SqlRowUpdatingEventArgs : System.Data.Common.RowUpdatingEventArgs - { - /// - public SqlRowUpdatingEventArgs(System.Data.DataRow row, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) - : base(row, command, statementType, tableMapping) { } - /// - protected override System.Data.IDbCommand BaseCommand { get { throw null; } set { } } - /// - public new Microsoft.Data.SqlClient.SqlCommand Command { get { throw null; } set { } } - } - /// - public delegate void SqlRowUpdatingEventHandler(object sender, Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs e); - /// - public sealed partial class SqlTransaction : System.Data.Common.DbTransaction - { - internal SqlTransaction() { } - /// - public new Microsoft.Data.SqlClient.SqlConnection Connection { get { throw null; } } - /// - protected override System.Data.Common.DbConnection DbConnection { get { throw null; } } - /// - public override System.Data.IsolationLevel IsolationLevel { get { throw null; } } - /// - public override void Commit() { } - /// - protected override void Dispose(bool disposing) { } - /// - public override void Rollback() { } - /// - public void Rollback(string transactionName) { } - /// - public void Save(string savePointName) { } - } - /// - public sealed class SqlRetryingEventArgs : System.EventArgs - { - /// - public SqlRetryingEventArgs(int retryCount, System.TimeSpan delay, System.Collections.Generic.IList exceptions) { } - /// - public int RetryCount { get { throw null; } } - /// - public System.TimeSpan Delay { get { throw null; } } - /// - public bool Cancel { get { throw null; } set { } } - /// - public System.Collections.Generic.IList Exceptions { get { throw null; } } - } - /// - public abstract class SqlRetryIntervalBaseEnumerator : System.Collections.Generic.IEnumerator, System.ICloneable - { - private readonly System.TimeSpan _minValue = System.TimeSpan.Zero; - private readonly System.TimeSpan _maxValue = System.TimeSpan.FromSeconds(120); - /// - public System.TimeSpan GapTimeInterval { get { throw null; } protected set { } } - /// - public System.TimeSpan MaxTimeInterval { get { throw null; } protected set { } } - /// - public System.TimeSpan MinTimeInterval { get { throw null; } protected set { } } - /// - public System.TimeSpan Current { get { throw null; } protected set { } } - object System.Collections.IEnumerator.Current { get { throw null; } } - /// - public SqlRetryIntervalBaseEnumerator() { } - /// - public SqlRetryIntervalBaseEnumerator(System.TimeSpan timeInterval, System.TimeSpan maxTime, System.TimeSpan minTime) { } - /// - public virtual void Reset() { } - /// - protected virtual void Validate(System.TimeSpan timeInterval, System.TimeSpan maxTimeInterval, System.TimeSpan minTimeInterval) { } - /// - protected abstract System.TimeSpan GetNextInterval(); - /// - public virtual bool MoveNext() { throw null; } - /// - public virtual void Dispose() { } - /// - public virtual object Clone() { throw null; } - } - /// - public abstract class SqlRetryLogicBase : System.ICloneable - { - /// - public int NumberOfTries { get { throw null; } protected set { } } - /// - public int Current { get { throw null; } protected set { } } - /// - public SqlRetryIntervalBaseEnumerator RetryIntervalEnumerator { get { throw null; } protected set { } } - /// - public System.Predicate TransientPredicate { get { throw null; } protected set { } } - /// - public virtual bool RetryCondition(object sender) { throw null; } - /// - public abstract bool TryNextInterval(out System.TimeSpan intervalTime); - /// - public abstract void Reset(); - /// - public virtual object Clone() { throw null; } - } - /// - public abstract class SqlRetryLogicBaseProvider - { - /// - public System.EventHandler Retrying { get { throw null; } set { } } - /// - public SqlRetryLogicBase RetryLogic { get { throw null; } protected set { } } - /// - public abstract TResult Execute(object sender, System.Func function); - /// - public abstract System.Threading.Tasks.Task ExecuteAsync(object sender, System.Func> function, System.Threading.CancellationToken cancellationToken = default); - /// - public abstract System.Threading.Tasks.Task ExecuteAsync(object sender, System.Func function, System.Threading.CancellationToken cancellationToken = default); - } - /// - public sealed class SqlRetryLogicOption - { - /// - public int NumberOfTries { get { throw null; } set { } } - /// - public System.TimeSpan DeltaTime { get { throw null; } set { } } - /// - public System.TimeSpan MinTimeInterval { get { throw null; } set { } } - /// - public System.TimeSpan MaxTimeInterval { get { throw null; } set { } } - /// - public System.Collections.Generic.IEnumerable TransientErrors { get { throw null; } set { } } - /// - public System.Predicate AuthorizedSqlCondition { get { throw null; } set { } } - } - /// - public sealed class SqlConfigurableRetryFactory - { - /// - public static SqlRetryLogicBaseProvider CreateExponentialRetryProvider(SqlRetryLogicOption retryLogicOption) { throw null; } - /// - public static SqlRetryLogicBaseProvider CreateIncrementalRetryProvider(SqlRetryLogicOption retryLogicOption) { throw null; } - /// - public static SqlRetryLogicBaseProvider CreateFixedRetryProvider(SqlRetryLogicOption retryLogicOption) { throw null; } - /// - public static SqlRetryLogicBaseProvider CreateNoneRetryProvider() { throw null; } - } -} -namespace Microsoft.Data.SqlClient.Server -{ - /// - public partial class SqlDataRecord : System.Data.IDataRecord - { - /// - public SqlDataRecord(params Microsoft.Data.SqlClient.Server.SqlMetaData[] metaData) { } - /// - public virtual int FieldCount { get { throw null; } } - /// - public virtual object this[int ordinal] { get { throw null; } } - /// - public virtual object this[string name] { get { throw null; } } - /// - public virtual bool GetBoolean(int ordinal) { throw null; } - /// - public virtual byte GetByte(int ordinal) { throw null; } - /// - public virtual long GetBytes(int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length) { throw null; } - /// - public virtual char GetChar(int ordinal) { throw null; } - /// - public virtual long GetChars(int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length) { throw null; } - /// - System.Data.IDataReader System.Data.IDataRecord.GetData(int ordinal) { throw null; } - /// - public virtual string GetDataTypeName(int ordinal) { throw null; } - /// - public virtual System.DateTime GetDateTime(int ordinal) { throw null; } - /// - public virtual System.DateTimeOffset GetDateTimeOffset(int ordinal) { throw null; } - /// - public virtual decimal GetDecimal(int ordinal) { throw null; } - /// - public virtual double GetDouble(int ordinal) { throw null; } - /// - public virtual System.Type GetFieldType(int ordinal) { throw null; } - /// - public virtual float GetFloat(int ordinal) { throw null; } - /// - public virtual System.Guid GetGuid(int ordinal) { throw null; } - /// - public virtual short GetInt16(int ordinal) { throw null; } - /// - public virtual int GetInt32(int ordinal) { throw null; } - /// - public virtual long GetInt64(int ordinal) { throw null; } - /// - public virtual string GetName(int ordinal) { throw null; } - /// - public virtual int GetOrdinal(string name) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBinary GetSqlBinary(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBoolean GetSqlBoolean(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlByte GetSqlByte(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlBytes GetSqlBytes(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlChars GetSqlChars(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDateTime GetSqlDateTime(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDecimal GetSqlDecimal(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlDouble GetSqlDouble(int ordinal) { throw null; } - /// - public virtual System.Type GetSqlFieldType(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlGuid GetSqlGuid(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt16 GetSqlInt16(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt32 GetSqlInt32(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlInt64 GetSqlInt64(int ordinal) { throw null; } - /// - public virtual Microsoft.Data.SqlClient.Server.SqlMetaData GetSqlMetaData(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlMoney GetSqlMoney(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlSingle GetSqlSingle(int ordinal) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlString GetSqlString(int ordinal) { throw null; } - /// - public virtual object GetSqlValue(int ordinal) { throw null; } - /// - public virtual int GetSqlValues(object[] values) { throw null; } - /// - public virtual System.Data.SqlTypes.SqlXml GetSqlXml(int ordinal) { throw null; } - /// - public virtual string GetString(int ordinal) { throw null; } - /// - public virtual System.TimeSpan GetTimeSpan(int ordinal) { throw null; } - /// - public virtual object GetValue(int ordinal) { throw null; } - /// - public virtual int GetValues(object[] values) { throw null; } - /// - public virtual bool IsDBNull(int ordinal) { throw null; } - /// - public virtual void SetBoolean(int ordinal, bool value) { } - /// - public virtual void SetByte(int ordinal, byte value) { } - /// - public virtual void SetBytes(int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length) { } - /// - public virtual void SetChar(int ordinal, char value) { } - /// - public virtual void SetChars(int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length) { } - /// - public virtual void SetDateTime(int ordinal, System.DateTime value) { } - /// - public virtual void SetDateTimeOffset(int ordinal, System.DateTimeOffset value) { } - /// - public virtual void SetDBNull(int ordinal) { } - /// - public virtual void SetDecimal(int ordinal, decimal value) { } - /// - public virtual void SetDouble(int ordinal, double value) { } - /// - public virtual void SetFloat(int ordinal, float value) { } - /// - public virtual void SetGuid(int ordinal, System.Guid value) { } - /// - public virtual void SetInt16(int ordinal, short value) { } - /// - public virtual void SetInt32(int ordinal, int value) { } - /// - public virtual void SetInt64(int ordinal, long value) { } - /// - public virtual void SetSqlBinary(int ordinal, System.Data.SqlTypes.SqlBinary value) { } - /// - public virtual void SetSqlBoolean(int ordinal, System.Data.SqlTypes.SqlBoolean value) { } - /// - public virtual void SetSqlByte(int ordinal, System.Data.SqlTypes.SqlByte value) { } - /// - public virtual void SetSqlBytes(int ordinal, System.Data.SqlTypes.SqlBytes value) { } - /// - public virtual void SetSqlChars(int ordinal, System.Data.SqlTypes.SqlChars value) { } - /// - public virtual void SetSqlDateTime(int ordinal, System.Data.SqlTypes.SqlDateTime value) { } - /// - public virtual void SetSqlDecimal(int ordinal, System.Data.SqlTypes.SqlDecimal value) { } - /// - public virtual void SetSqlDouble(int ordinal, System.Data.SqlTypes.SqlDouble value) { } - /// - public virtual void SetSqlGuid(int ordinal, System.Data.SqlTypes.SqlGuid value) { } - /// - public virtual void SetSqlInt16(int ordinal, System.Data.SqlTypes.SqlInt16 value) { } - /// - public virtual void SetSqlInt32(int ordinal, System.Data.SqlTypes.SqlInt32 value) { } - /// - public virtual void SetSqlInt64(int ordinal, System.Data.SqlTypes.SqlInt64 value) { } - /// - public virtual void SetSqlMoney(int ordinal, System.Data.SqlTypes.SqlMoney value) { } - /// - public virtual void SetSqlSingle(int ordinal, System.Data.SqlTypes.SqlSingle value) { } - /// - public virtual void SetSqlString(int ordinal, System.Data.SqlTypes.SqlString value) { } - /// - public virtual void SetSqlXml(int ordinal, System.Data.SqlTypes.SqlXml value) { } - /// - public virtual void SetString(int ordinal, string value) { } - /// - public virtual void SetTimeSpan(int ordinal, System.TimeSpan value) { } - /// - public virtual void SetValue(int ordinal, object value) { } - /// - public virtual int SetValues(params object[] values) { throw null; } - } - /// - public sealed partial class SqlMetaData - { - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, byte precision, byte scale) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, byte precision, byte scale, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, byte precision, byte scale, long locale, System.Data.SqlTypes.SqlCompareOptions compareOptions, System.Type userDefinedType) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, byte precision, byte scale, long localeId, System.Data.SqlTypes.SqlCompareOptions compareOptions, System.Type userDefinedType, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, long locale, System.Data.SqlTypes.SqlCompareOptions compareOptions) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, long maxLength, long locale, System.Data.SqlTypes.SqlCompareOptions compareOptions, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, string database, string owningSchema, string objectName) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, string database, string owningSchema, string objectName, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, System.Type userDefinedType) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, System.Type userDefinedType, string serverTypeName) { } - /// - public SqlMetaData(string name, System.Data.SqlDbType dbType, System.Type userDefinedType, string serverTypeName, bool useServerDefault, bool isUniqueKey, Microsoft.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal) { } - /// - public System.Data.SqlTypes.SqlCompareOptions CompareOptions { get { throw null; } } - /// - public System.Data.DbType DbType { get { throw null; } } - /// - public bool IsUniqueKey { get { throw null; } } - /// - public long LocaleId { get { throw null; } } - /// - public static long Max { get { throw null; } } - /// - public long MaxLength { get { throw null; } } - /// - public string Name { get { throw null; } } - /// - public byte Precision { get { throw null; } } - /// - public byte Scale { get { throw null; } } - /// - public Microsoft.Data.SqlClient.SortOrder SortOrder { get { throw null; } } - /// - public int SortOrdinal { get { throw null; } } - /// - public System.Data.SqlDbType SqlDbType { get { throw null; } } - /// - public System.Type Type { get { throw null; } } - /// - public string TypeName { get { throw null; } } - /// - public bool UseServerDefault { get { throw null; } } - /// - public string XmlSchemaCollectionDatabase { get { throw null; } } - /// - public string XmlSchemaCollectionName { get { throw null; } } - /// - public string XmlSchemaCollectionOwningSchema { get { throw null; } } - /// - public bool Adjust(bool value) { throw null; } - /// - public byte Adjust(byte value) { throw null; } - /// - public byte[] Adjust(byte[] value) { throw null; } - /// - public char Adjust(char value) { throw null; } - /// - public char[] Adjust(char[] value) { throw null; } - /// - public System.Data.SqlTypes.SqlBinary Adjust(System.Data.SqlTypes.SqlBinary value) { throw null; } - /// - public System.Data.SqlTypes.SqlBoolean Adjust(System.Data.SqlTypes.SqlBoolean value) { throw null; } - /// - public System.Data.SqlTypes.SqlByte Adjust(System.Data.SqlTypes.SqlByte value) { throw null; } - /// - public System.Data.SqlTypes.SqlBytes Adjust(System.Data.SqlTypes.SqlBytes value) { throw null; } - /// - public System.Data.SqlTypes.SqlChars Adjust(System.Data.SqlTypes.SqlChars value) { throw null; } - /// - public System.Data.SqlTypes.SqlDateTime Adjust(System.Data.SqlTypes.SqlDateTime value) { throw null; } - /// - public System.Data.SqlTypes.SqlDecimal Adjust(System.Data.SqlTypes.SqlDecimal value) { throw null; } - /// - public System.Data.SqlTypes.SqlDouble Adjust(System.Data.SqlTypes.SqlDouble value) { throw null; } - /// - public System.Data.SqlTypes.SqlGuid Adjust(System.Data.SqlTypes.SqlGuid value) { throw null; } - /// - public System.Data.SqlTypes.SqlInt16 Adjust(System.Data.SqlTypes.SqlInt16 value) { throw null; } - /// - public System.Data.SqlTypes.SqlInt32 Adjust(System.Data.SqlTypes.SqlInt32 value) { throw null; } - /// - public System.Data.SqlTypes.SqlInt64 Adjust(System.Data.SqlTypes.SqlInt64 value) { throw null; } - /// - public System.Data.SqlTypes.SqlMoney Adjust(System.Data.SqlTypes.SqlMoney value) { throw null; } - /// - public System.Data.SqlTypes.SqlSingle Adjust(System.Data.SqlTypes.SqlSingle value) { throw null; } - /// - public System.Data.SqlTypes.SqlString Adjust(System.Data.SqlTypes.SqlString value) { throw null; } - /// - public System.Data.SqlTypes.SqlXml Adjust(System.Data.SqlTypes.SqlXml value) { throw null; } - /// - public System.DateTime Adjust(System.DateTime value) { throw null; } - /// - public System.DateTimeOffset Adjust(System.DateTimeOffset value) { throw null; } - /// - public decimal Adjust(decimal value) { throw null; } - /// - public double Adjust(double value) { throw null; } - /// - public System.Guid Adjust(System.Guid value) { throw null; } - /// - public short Adjust(short value) { throw null; } - /// - public int Adjust(int value) { throw null; } - /// - public long Adjust(long value) { throw null; } - /// - public object Adjust(object value) { throw null; } - /// - public float Adjust(float value) { throw null; } - /// - public string Adjust(string value) { throw null; } - /// - public System.TimeSpan Adjust(System.TimeSpan value) { throw null; } - /// - public static Microsoft.Data.SqlClient.Server.SqlMetaData InferFromValue(object value, string name) { throw null; } - } -} -namespace Microsoft.Data.SqlClient.DataClassification -{ - /// - public partial class ColumnSensitivity - { - /// - public ColumnSensitivity(System.Collections.Generic.IList sensitivityProperties) { } - /// - public System.Collections.ObjectModel.ReadOnlyCollection SensitivityProperties { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public partial class InformationType - { - /// - public InformationType(string name, string id) { } - /// - public string Id { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public partial class Label - { - /// - public Label(string name, string id) { } - /// - public string Id { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - /// - public enum SensitivityRank - { - /// - NOT_DEFINED = -1, - /// - NONE = 0, - /// - LOW = 10, - /// - MEDIUM = 20, - /// - HIGH = 30, - /// - CRITICAL = 40 - } - /// - public partial class SensitivityClassification - { - /// - public SensitivityClassification(System.Collections.Generic.IList labels, System.Collections.Generic.IList informationTypes, System.Collections.Generic.IList columnSensitivity, SensitivityRank sensitivityRank) { } - /// - public System.Collections.ObjectModel.ReadOnlyCollection ColumnSensitivities { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public System.Collections.ObjectModel.ReadOnlyCollection InformationTypes { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public System.Collections.ObjectModel.ReadOnlyCollection Labels { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public SensitivityRank SensitivityRank { get { throw null; } } - } - /// - public partial class SensitivityProperty - { - /// - public SensitivityProperty(Microsoft.Data.SqlClient.DataClassification.Label label, Microsoft.Data.SqlClient.DataClassification.InformationType informationType, SensitivityRank sensitivityRank) { } - /// - public Microsoft.Data.SqlClient.DataClassification.InformationType InformationType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public Microsoft.Data.SqlClient.DataClassification.Label Label { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - /// - public SensitivityRank SensitivityRank { get { throw null; } } - } -} -namespace Microsoft.Data.SqlTypes -{ - /// - public sealed partial class SqlFileStream : System.IO.Stream - { - /// - public SqlFileStream(string path, byte[] transactionContext, System.IO.FileAccess access) { } - /// - public SqlFileStream(string path, byte[] transactionContext, System.IO.FileAccess access, System.IO.FileOptions options, System.Int64 allocationSize) { } - /// - public string Name { get { throw null; } } - /// - public byte[] TransactionContext { get { throw null; } } - /// - public override bool CanRead { get { throw null; } } - /// - public override bool CanSeek { get { throw null; } } - /// - public override bool CanTimeout { get { throw null; } } - /// - public override bool CanWrite { get { throw null; } } - /// - public override long Length { get { throw null; } } - /// - public override long Position { get { throw null; } set { throw null; } } - /// - public override int ReadTimeout { get { throw null; } } - /// - public override int WriteTimeout { get { throw null; } } - /// - public override void Flush() { } - /// - public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; } - /// - public override int EndRead(System.IAsyncResult asyncResult) { throw null; } - /// - public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback callback, System.Object state) { throw null; } - /// - public override void EndWrite(System.IAsyncResult asyncResult) { } - /// - public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } - /// - public override void SetLength(long value) { throw null; } - /// - public override int Read(byte[] buffer, int offset, int count) { throw null; } - /// - public override int ReadByte() { throw null; } - /// - public override void Write(byte[] buffer, int offset, int count) { throw null; } - /// - public override void WriteByte(byte value) { } - } -} diff --git a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj deleted file mode 100644 index 19e1e5c7b6..0000000000 --- a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj +++ /dev/null @@ -1,21 +0,0 @@ - - - false - net462 - $(ObjFolder)$(Configuration)\$(AssemblyName)\ref\ - $(BinFolder)$(Configuration)\$(AssemblyName)\ref\ - $(OutputPath)\Microsoft.Data.SqlClient.xml - Framework $(BaseProduct) - Debug;Release; - - - - - - - - - - - - diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj index 2bcc979352..d3d8233bdf 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj @@ -17,6 +17,7 @@ True false $(DefineConstants);NETFRAMEWORK; + true From 48b8d096a9c00ccc5a756b5c453d394825ec17f8 Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Wed, 13 Mar 2024 15:15:02 -0500 Subject: [PATCH 5/8] Removing targets that aren't necessary? Producing reference assemblies in the output director --- .../src/Microsoft.Data.SqlClient.csproj | 3 +- .../netfx/src/Microsoft.Data.SqlClient.csproj | 3 +- tools/targets/NotSupported.targets | 55 ------------------- tools/targets/ResolveContract.targets | 29 ---------- 4 files changed, 3 insertions(+), 87 deletions(-) delete mode 100644 tools/targets/NotSupported.targets delete mode 100644 tools/targets/ResolveContract.targets diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index 9245f1c9c8..4dffc81ad1 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -21,6 +21,7 @@ true $(NoWarn);IL2026;IL2057;IL2072;IL2075 true + true $([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)')) @@ -981,7 +982,5 @@ - - diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj index d3d8233bdf..2924df921f 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj @@ -17,7 +17,8 @@ True false $(DefineConstants);NETFRAMEWORK; - true + true + true diff --git a/tools/targets/NotSupported.targets b/tools/targets/NotSupported.targets deleted file mode 100644 index 890c4ae048..0000000000 --- a/tools/targets/NotSupported.targets +++ /dev/null @@ -1,55 +0,0 @@ - - - - - true - $(IntermediateOutputPath)\$(TargetFramework)\$(AssemblyName).notsupported.cs - $(CoreCompileDependsOn);GenerateNotSupportedSource - - false - false - - - - - True - - - - - - - - <_referencePathDirectoriesWithDuplicates Include="@(ReferencePath->'%(RootDir)%(Directory)'->TrimEnd('\'))" /> - - <_referencePathDirectories Include="%(_referencePathDirectoriesWithDuplicates.Identity)" /> - - - - - - "%(ResolvedMatchingContract.Identity)" - $(GenAPIArgs) -l:"@(_referencePathDirectories)" - $(GenAPIArgs) -o:"$(NotSupportedSourceFile)" - $(GenAPIArgs) -t:"$(GeneratePlatformNotSupportedAssemblyMessage)" - $(GenAPIArgs) -global - "$(DotNetCmd) $(ToolsArtifactsDir)$(TargetFramework)\Microsoft.DotNet.GenAPI.dll" - "$(ToolsArtifactsDir)net472\Microsoft.DotNet.GenAPI.exe" - - - - - - - - - diff --git a/tools/targets/ResolveContract.targets b/tools/targets/ResolveContract.targets deleted file mode 100644 index 98d3582716..0000000000 --- a/tools/targets/ResolveContract.targets +++ /dev/null @@ -1,29 +0,0 @@ - - - - $(NetCoreSource)ref/$(MSBuildProjectName).csproj - true - $(ContractOutputPath)/$(MSBuildProjectName).dll - - - - - - - false - ResolvedMatchingContract - - - - - - - - - - - - - - - From 53db9f142ae4fc337b56b46160681c23f1faac74 Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Thu, 14 Mar 2024 17:47:43 -0500 Subject: [PATCH 6/8] Cleaning up ref xml generation --- .../SqlDataRecord.xml | 28 ++++++------------- .../SqlAuthenticationInitializer.xml | 1 - .../Microsoft.Data.SqlClient/SqlBulkCopy.xml | 2 +- .../SqlClientLogger.xml | 4 --- ...lumnEncryptionCertificateStoreProvider.xml | 6 +--- .../SqlColumnEncryptionCngProvider.xml | 4 --- .../SqlColumnEncryptionKeyStoreProvider.xml | 4 --- .../Microsoft.Data.SqlClient/SqlCommand.xml | 11 -------- .../SqlConnection.xml | 12 ++++---- .../SqlParameterCollection.xml | 2 +- .../Microsoft/Data/SqlClient/SqlBulkCopy.cs | 1 + .../Microsoft/Data/SqlClient/SqlCommand.cs | 6 ++-- .../Data/SqlClient/SqlTransaction.cs | 2 +- .../Microsoft/Data/SqlClient/SqlBulkCopy.cs | 1 + .../Microsoft/Data/SqlClient/SqlCommand.cs | 4 +-- .../SqlBulkCopyColumnOrderHintCollection.cs | 6 ++++ 16 files changed, 31 insertions(+), 63 deletions(-) diff --git a/doc/snippets/Microsoft.Data.SqlClient.Server/SqlDataRecord.xml b/doc/snippets/Microsoft.Data.SqlClient.Server/SqlDataRecord.xml index a2481e9363..6be68e21d9 100644 --- a/doc/snippets/Microsoft.Data.SqlClient.Server/SqlDataRecord.xml +++ b/doc/snippets/Microsoft.Data.SqlClient.Server/SqlDataRecord.xml @@ -112,12 +112,6 @@ The column specified by is null. There is a type mismatch. - - To be added. - To be added. - To be added. - To be added. - The zero-based ordinal of the column. Returns the name of the data type for the column specified by the ordinal argument. @@ -757,12 +751,10 @@ Sets new values for all of the columns in the . These values are expressed as common language runtime (CLR) types. The number of column values set as an integer. - instance. - - ]]> + The length of values must match the number of columns in the instance. + ]]> is . @@ -772,18 +764,14 @@ The zero-based ordinal of the column. Not supported in this release. - - - Always throws an exception. + Always throws an exception. + - if called. - - ]]> + This method is not supported in this release, and throws if called. + ]]> - The is less than 0 or greater than the number of columns (that is, ). diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlAuthenticationInitializer.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlAuthenticationInitializer.xml index 41a3734d3d..e228671d15 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlAuthenticationInitializer.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlAuthenticationInitializer.xml @@ -2,7 +2,6 @@ Called from constructors in derived classes to initialize the class. - To be added. Default Constructor to initialize the class. diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlBulkCopy.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlBulkCopy.xml index 6f7cc400d5..010d8bc35f 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlBulkCopy.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlBulkCopy.xml @@ -364,7 +364,7 @@ During the execution of a bulk copy operation, this collection can be accessed, ]]> - + Returns a collection of diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlClientLogger.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlClientLogger.xml index c093bbd505..a939ba71be 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlClientLogger.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlClientLogger.xml @@ -4,10 +4,6 @@ Represents a SQL client logger. To be added. - - Initializes a new instance of the class. - To be added. - Gets a value that indicates whether bid tracing is enabled. diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionCertificateStoreProvider.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionCertificateStoreProvider.xml index 697e9b8539..fbebee7082 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionCertificateStoreProvider.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionCertificateStoreProvider.xml @@ -6,10 +6,6 @@ To be added. - - Key store provider for Windows Certificate Store. - To be added. - The master key path. The encryption algorithm. Currently, the only valid value is: RSA_OAEP @@ -58,4 +54,4 @@ parameter. To be added. - \ No newline at end of file + diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionCngProvider.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionCngProvider.xml index 30d0640781..a37760569f 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionCngProvider.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionCngProvider.xml @@ -13,10 +13,6 @@ ]]> - - Initializes a new instance of the class. - To be added. - The master key path. The encryption algorithm. diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionKeyStoreProvider.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionKeyStoreProvider.xml index 7c2dc715fd..796b53d7f9 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionKeyStoreProvider.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionKeyStoreProvider.xml @@ -8,10 +8,6 @@ For details see, Always Encrypted. - - Initializes a new instance of the SqlColumnEncryptionKeyStoreProviderClass. - To be added. - The master key path. The encryption algorithm. diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlCommand.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlCommand.xml index a19cff3c8a..992c44bd6d 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlCommand.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlCommand.xml @@ -3052,17 +3052,6 @@ The default value of the - - - Creates a new instance of a object. - - - A object. - - - To be added. - - Gets or sets the diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml index 7833db6f4a..88a1c15d37 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml @@ -4,7 +4,7 @@ Represents a connection to a SQL Server database. This class cannot be inherited. - object represents a unique session to a SQL Server data source. With a client/server database system, it is equivalent to a network connection to the server. is used together with and to increase performance when connecting to a Microsoft SQL Server database. For all third-party SQL Server products and other OLE DB-supported data sources, use . @@ -1245,11 +1245,11 @@ The following sample tries to open a connection to an invalid database to simula was called while the returned Task was not completed and the connection was not opened after a call to . - - Gets the server process Id (SPID) of the active connection. - The server process Id (SPID) of the active connection. - Returns 0 if the connection is inactive on the client side. - + + Gets the server process Id (SPID) of the active connection. + The server process Id (SPID) of the active connection. + Returns 0 if the connection is inactive on the client side. + Indicates the state of the during the most recent network operation performed on the connection. An enumeration. diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlParameterCollection.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlParameterCollection.xml index c75791c6bc..40c8df5e06 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlParameterCollection.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlParameterCollection.xml @@ -124,7 +124,7 @@ This overload is useful when you are adding a parameter of a variable-length dat Adds elements to the end of the . - The values to add. + The of values to add. Adds an array of values to the end of the . To be added. diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs index 92c6d0075c..97d059145f 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs @@ -396,6 +396,7 @@ internal SqlStatistics Statistics } } + /// void IDisposable.Dispose() { Dispose(true); 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 d01c686d04..e016a516c8 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 @@ -1088,7 +1088,7 @@ public override void Cancel() } /// - new public SqlParameter CreateParameter() + public new SqlParameter CreateParameter() { return new SqlParameter(); } @@ -2030,10 +2030,10 @@ private XmlReader CompleteXmlReader(SqlDataReader ds, bool isAsync = false) return xr; } - /// + /// public IAsyncResult BeginExecuteReader() => BeginExecuteReader(null, null, CommandBehavior.Default); - /// + /// public IAsyncResult BeginExecuteReader(AsyncCallback callback, object stateObject) => BeginExecuteReader(callback, stateObject, CommandBehavior.Default); /// diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlTransaction.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlTransaction.cs index 07472db42b..bb316f89c7 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlTransaction.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlTransaction.cs @@ -120,7 +120,7 @@ public override void Rollback() /// #if NET6_0_OR_GREATER - public override void Rollback(string transactionName) + public override void Rollback(string transactionName) #else public void Rollback(string transactionName) #endif diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs index 54b03683b7..ee1baad8bd 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs @@ -412,6 +412,7 @@ internal SqlStatistics Statistics } } + /// void IDisposable.Dispose() { Dispose(true); diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlCommand.cs b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlCommand.cs index 94cd927c1d..de12a25f9b 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlCommand.cs +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlCommand.cs @@ -2466,14 +2466,14 @@ private XmlReader CompleteXmlReader(SqlDataReader ds, bool async = false) return xr; } - /// + /// [System.Security.Permissions.HostProtectionAttribute(ExternalThreading = true)] public IAsyncResult BeginExecuteReader() { return BeginExecuteReader(null, null, CommandBehavior.Default); } - /// + /// [System.Security.Permissions.HostProtectionAttribute(ExternalThreading = true)] public IAsyncResult BeginExecuteReader(AsyncCallback callback, object stateObject) { diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBulkCopyColumnOrderHintCollection.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBulkCopyColumnOrderHintCollection.cs index 82fda1ad7d..37f86e9c38 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBulkCopyColumnOrderHintCollection.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlBulkCopyColumnOrderHintCollection.cs @@ -36,6 +36,9 @@ public SqlBulkCopyColumnOrderHint Add(SqlBulkCopyColumnOrderHint columnOrderHint /// public SqlBulkCopyColumnOrderHint Add(string column, SortOrder sortOrder) => Add(new SqlBulkCopyColumnOrderHint(column, sortOrder)); + /// + public new void Clear() => base.Clear(); + /// /// Invoked before the collection is cleared using Clear(). Unregisters each order hint. /// @@ -83,6 +86,9 @@ public void Remove(SqlBulkCopyColumnOrderHint columnOrderHint) List.Remove(columnOrderHint); } + /// + public new void RemoveAt(int index) => base.RemoveAt(index); + /// /// Invoked before the order hint is removed using Remove() or RemoveAt(). Unregisters the order hint. /// From ac4454777080c68720eb5d541c76f100848e21ed Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Fri, 15 Mar 2024 18:12:31 -0500 Subject: [PATCH 7/8] Patching up nuspec to allow pulling ref files from other locations --- tools/specs/Microsoft.Data.SqlClient.nuspec | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/specs/Microsoft.Data.SqlClient.nuspec b/tools/specs/Microsoft.Data.SqlClient.nuspec index f44a2a462d..3de213bd93 100644 --- a/tools/specs/Microsoft.Data.SqlClient.nuspec +++ b/tools/specs/Microsoft.Data.SqlClient.nuspec @@ -125,22 +125,22 @@ When using NuGet 3.x this package requires at least version 3.4. - - + + - - + + - - + + - - + + - - + + From aaaa508d7688ce242142f29e90f34cf5c547c07d Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Tue, 19 Mar 2024 17:41:30 -0500 Subject: [PATCH 8/8] Fix typo that took *way* too long to find Fix locations of ref files in the nuspec --- .../netcore/src/Microsoft.Data.SqlClient.csproj | 2 +- tools/specs/Microsoft.Data.SqlClient.nuspec | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index 4dffc81ad1..560f467c60 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -20,7 +20,7 @@ Core $(BaseProduct) true $(NoWarn);IL2026;IL2057;IL2072;IL2075 - true + true true diff --git a/tools/specs/Microsoft.Data.SqlClient.nuspec b/tools/specs/Microsoft.Data.SqlClient.nuspec index 3de213bd93..df77b48882 100644 --- a/tools/specs/Microsoft.Data.SqlClient.nuspec +++ b/tools/specs/Microsoft.Data.SqlClient.nuspec @@ -129,18 +129,18 @@ When using NuGet 3.x this package requires at least version 3.4. - - + + - - + + - - + + - - + +