diff options
author | Marek Safar <marek.safar@gmail.com> | 2017-11-13 19:18:07 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-11-15 11:27:21 +0300 |
commit | 6910dd4bc026f98d0e08861ece8d731375244d46 (patch) | |
tree | 2a2e5e28ae17ed3d3b678756f11297f0d6619a57 /mcs/class/System.Data | |
parent | c58ab6f4cb20a3f278b29604dd2f9c619c7c6f87 (diff) |
[System.Data] Add missing Microsoft.SqlServer.Server APIs
Diffstat (limited to 'mcs/class/System.Data')
3 files changed, 123 insertions, 0 deletions
diff --git a/mcs/class/System.Data/Microsoft.SqlServer.Server/SqlContext.cs b/mcs/class/System.Data/Microsoft.SqlServer.Server/SqlContext.cs new file mode 100644 index 00000000000..620eb4ab4a8 --- /dev/null +++ b/mcs/class/System.Data/Microsoft.SqlServer.Server/SqlContext.cs @@ -0,0 +1,43 @@ +// +// SqlContext.cs +// +// Authors: +// Marek Safar <marek.safar@gmail.com> +// +// Copyright (C) 2017 Microsoft Corporation (http://www.microsoft.com) +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// + +using System.Security.Principal; + +namespace Microsoft.SqlServer.Server +{ + public sealed class SqlContext + { + public static bool IsAvailable => false; + + public static SqlPipe Pipe => null; + + public static SqlTriggerContext TriggerContext => null; + + public static WindowsIdentity WindowsIdentity => null; + } +}
\ No newline at end of file diff --git a/mcs/class/System.Data/Microsoft.SqlServer.Server/SqlPipe.cs b/mcs/class/System.Data/Microsoft.SqlServer.Server/SqlPipe.cs new file mode 100644 index 00000000000..0e278ad5b3a --- /dev/null +++ b/mcs/class/System.Data/Microsoft.SqlServer.Server/SqlPipe.cs @@ -0,0 +1,77 @@ +// +// SqlPipe.cs +// +// Authors: +// Marek Safar <marek.safar@gmail.com> +// +// Copyright (C) 2017 Microsoft Corporation (http://www.microsoft.com) +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// + +using System; +using System.Data.SqlClient; + +namespace Microsoft.SqlServer.Server +{ + public sealed class SqlPipe + { + private SqlPipe () + { + } + + public bool IsSendingResults => false; + + public void ExecuteAndSend (SqlCommand command) + { + throw new NotImplementedException (); + } + + public void Send (string message) + { + throw new NotImplementedException (); + } + + public void Send (SqlDataReader reader) + { + throw new NotImplementedException (); + } + + public void Send (SqlDataRecord record) + { + throw new NotImplementedException (); + } + + public void SendResultsStart (SqlDataRecord record) + { + throw new NotImplementedException (); + } + + public void SendResultsRow (SqlDataRecord record) + { + throw new NotImplementedException (); + } + + public void SendResultsEnd () + { + throw new NotImplementedException (); + } + } +}
\ No newline at end of file diff --git a/mcs/class/System.Data/net_4_x_System.Data.dll.sources b/mcs/class/System.Data/net_4_x_System.Data.dll.sources index 12f21625dfc..d29ed191168 100644 --- a/mcs/class/System.Data/net_4_x_System.Data.dll.sources +++ b/mcs/class/System.Data/net_4_x_System.Data.dll.sources @@ -7,6 +7,9 @@ Assembly/AssemblyInfo.cs ../../build/common/AssemblyRef.cs ../../build/common/SR.cs +Microsoft.SqlServer.Server/SqlContext.cs +Microsoft.SqlServer.Server/SqlPipe.cs + System.Data.SqlClient/SQLDebugging.cs ../referencesource/System.Data/System/Data/CodeGen/datacache.cs ../referencesource/System.Data/Misc/PrivilegedConfigurationManager.cs |