You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@@ -60,7 +60,6 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyDelaySign (true)]
|
||||
|
||||
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
|
||||
[assembly: InternalsVisibleTo ("System.Data.DataSetExtensions, PublicKey=" + AssemblyRef.FrameworkPublicKeyFull)]
|
||||
[assembly: InternalsVisibleTo ("System.Design, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]
|
||||
[assembly: InternalsVisibleTo ("System.Web, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]
|
||||
|
||||
|
||||
@@ -4,45 +4,34 @@ include ../../build/rules.make
|
||||
|
||||
LIBRARY = System.Data.dll
|
||||
|
||||
LIB_REFS = System System.Xml System.Core System.Numerics
|
||||
LIB_REFS = System System.Xml System.Core System.Numerics System.Transactions
|
||||
KEYFILE = ../ecma.pub
|
||||
LIB_MCS_FLAGS = \
|
||||
-nowarn:219,414,649 \
|
||||
-nowarn:219,414,649,619 \
|
||||
-d:COREFX \
|
||||
-d:PLATFORM_UNIX \
|
||||
-d:USEOFFSET \
|
||||
-d:MONO_PARTIAL_DATA_IMPORT \
|
||||
-resource:../../../external/corefx/src/System.Data.SqlClient/src/Resources/System.Data.SqlClient.SqlMetaData.xml \
|
||||
-unsafe
|
||||
|
||||
ifdef NO_MONO_SECURITY
|
||||
MONO_DATA_TDS=
|
||||
else
|
||||
MONO_DATA_TDS=Mono.Data.Tds
|
||||
endif
|
||||
|
||||
ifdef MOBILE_PROFILE
|
||||
LIB_REFS += $(MONO_DATA_TDS) System.Transactions
|
||||
LIB_MCS_FLAGS += -d:NO_CODEDOM -d:NO_OLEDB -d:NO_ODBC -d:NO_CONFIGURATION
|
||||
else
|
||||
LIB_REFS += System.EnterpriseServices $(MONO_DATA_TDS) System.Configuration System.Transactions
|
||||
BUILT_SOURCES = \
|
||||
gen_OdbcConnection.cs \
|
||||
gen_OleDbConnection.cs \
|
||||
gen_OdbcParameter.cs \
|
||||
gen_OleDbParameter.cs \
|
||||
gen_OdbcParameterCollection.cs \
|
||||
gen_OleDbParameterCollection.cs
|
||||
LIB_REFS += System.EnterpriseServices System.Configuration
|
||||
endif
|
||||
|
||||
TXT_RESOURCE_STRINGS = ../referencesource/System.Data/system.data.txt
|
||||
|
||||
RESX_RESOURCE_STRING = \
|
||||
../../../external/corefx/src/System.Data.Common/src/Resources/Strings.resx
|
||||
../../../external/corefx/src/System.Data.Common/src/Resources/Strings.resx \
|
||||
../../../external/corefx/src/System.Data.SqlClient/src/Resources/Strings.resx \
|
||||
../../../external/corefx/src/System.Data.Odbc/src/Resources/Strings.resx
|
||||
|
||||
TEST_LIB_REFS = System.Core Mono.Data.Sqlite
|
||||
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618,169,612,219,168
|
||||
|
||||
TEST_NUNITLITE_APP_CONFIG_GLOBAL=Test/test-config-file
|
||||
XTEST_LIB_REFS = System System.Core System.Xml Facades/System.Text.Encoding.CodePages Facades/System.Threading.Tasks Facades/System.Runtime.InteropServices.RuntimeInformation
|
||||
|
||||
TEST_MONO_PATH = .
|
||||
|
||||
@@ -56,46 +45,7 @@ EXTRA_DISTFILES = \
|
||||
Test/System.Data/binserialize/*.bin \
|
||||
Test/ProviderTests/sql/*.sql \
|
||||
SqliteTest.db \
|
||||
corefx.common.sources
|
||||
|
||||
gen_OdbcConnection.cs: ../referencesource/System.Data/System/Data/ProviderBase/DbConnectionHelper.cs
|
||||
sed -e "s/NAMESPACE/System.Data.Odbc/g" $< |\
|
||||
sed -e "s/CONNECTIONFACTORYOBJECTNAME/OdbcConnectionFactory.SingletonInstance/g" |\
|
||||
sed -e "s/CONNECTIONOBJECTNAME/OdbcConnection/g" >$@
|
||||
gen_OleDbConnection.cs: ../referencesource/System.Data/System/Data/ProviderBase/DbConnectionHelper.cs
|
||||
sed -e s/NAMESPACE/System.Data.OleDb/g $< |\
|
||||
sed -e s/CONNECTIONFACTORYOBJECTNAME/OleDbConnectionFactory.SingletonInstance/g |\
|
||||
sed -e s/CONNECTIONOBJECTNAME/OleDbConnection/g >$@
|
||||
gen_SqlConnection.cs: ../referencesource/System.Data/System/Data/ProviderBase/DbConnectionHelper.cs
|
||||
sed -e s/NAMESPACE/System.Data.SqlClient/g $< |\
|
||||
sed -e s/CONNECTIONFACTORYOBJECTNAME/SqlConnectionFactory.SingletonInstance/g |\
|
||||
sed -e s/CONNECTIONOBJECTNAME/SqlConnection/g >$@
|
||||
gen_OdbcParameter.cs: ../referencesource/System.Data/System/Data/ProviderBase/DbParameterHelper.cs
|
||||
sed -e s/RESNAMESPACE/System.Data/g $< |\
|
||||
sed -e s/NAMESPACE/System.Data.Odbc/g |\
|
||||
sed -e s/PARAMETEROBJECTNAME/OdbcParameter/g >$@
|
||||
gen_OleDbParameter.cs: ../referencesource/System.Data/System/Data/ProviderBase/DbParameterHelper.cs
|
||||
sed -e s/RESNAMESPACE/System.Data/g $< |\
|
||||
sed -e s/NAMESPACE/System.Data.OleDb/g |\
|
||||
sed -e s/PARAMETEROBJECTNAME/OleDbParameter/g >$@
|
||||
gen_SqlParameter.cs: ../referencesource/System.Data/System/Data/ProviderBase/DbParameterHelper.cs
|
||||
sed -e s/RESNAMESPACE/System.Data/g $< |\
|
||||
sed -e s/NAMESPACE/System.Data.SqlClient/g |\
|
||||
sed -e s/PARAMETEROBJECTNAME/SqlParameter/g >$@
|
||||
gen_OdbcParameterCollection.cs: ../referencesource/System.Data/System/Data/ProviderBase/DbParameterCollectionHelper.cs
|
||||
sed -e s/RESNAMESPACE/System.Data/g $< |\
|
||||
sed -e s/NAMESPACE/System.Data.Odbc/g |\
|
||||
sed -e s/PARAMETERCOLLECTIONOBJECTNAME/OdbcParameterCollection/g |\
|
||||
sed -e s/PARAMETEROBJECTNAME/OdbcParameter/g >$@
|
||||
gen_OleDbParameterCollection.cs: ../referencesource/System.Data/System/Data/ProviderBase/DbParameterCollectionHelper.cs
|
||||
sed -e s/RESNAMESPACE/System.Data/g $< |\
|
||||
sed -e s/NAMESPACE/System.Data.OleDb/g |\
|
||||
sed -e s/PARAMETERCOLLECTIONOBJECTNAME/OleDbParameterCollection/g |\
|
||||
sed -e s/PARAMETEROBJECTNAME/OleDbParameter/g >$@
|
||||
gen_SqlParameterCollection.cs: ../referencesource/System.Data/System/Data/ProviderBase/DbParameterCollectionHelper.cs
|
||||
sed -e s/RESNAMESPACE/System.Data/g $< |\
|
||||
sed -e s/NAMESPACE/System.Data.SqlClient/g |\
|
||||
sed -e s/PARAMETERCOLLECTIONOBJECTNAME/SqlParameterCollection/g |\
|
||||
sed -e s/PARAMETEROBJECTNAME/SqlParameter/g >$@
|
||||
corefx.common.sources \
|
||||
corefx.unix.sources
|
||||
|
||||
include ../../build/library.make
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
//
|
||||
// System.Data.SqlClient.SqlNotificationType.cs
|
||||
// SqlContext.cs
|
||||
//
|
||||
// Author:
|
||||
// Umadevi S <sumadevi@novell.com>
|
||||
// Authors:
|
||||
// Marek Safar <marek.safar@gmail.com>
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004 Novell, Inc (http://www.novell.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
|
||||
@@ -28,16 +26,18 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
namespace System.Data.SqlClient
|
||||
using System.Security.Principal;
|
||||
|
||||
namespace Microsoft.SqlServer.Server
|
||||
{
|
||||
/// <summary>
|
||||
/// Describes the differnt notification types that can be received by the dependency
|
||||
/// event handler.
|
||||
/// </summary>
|
||||
public enum SqlNotificationType
|
||||
public sealed class SqlContext
|
||||
{
|
||||
Change = 0,
|
||||
Subscribe = 1,
|
||||
Unknown = -1
|
||||
public static bool IsAvailable => false;
|
||||
|
||||
public static SqlPipe Pipe => null;
|
||||
|
||||
public static SqlTriggerContext TriggerContext => null;
|
||||
|
||||
public static WindowsIdentity WindowsIdentity => null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,455 +0,0 @@
|
||||
//
|
||||
// SqlDataRecord.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar (marek.safar@gmail.com)
|
||||
//
|
||||
// Copyright (C) 2015 Novell, Inc (http://www.xamarin.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;
|
||||
using System.Data.SqlTypes;
|
||||
|
||||
namespace Microsoft.SqlServer.Server
|
||||
{
|
||||
public class SqlDataRecord : IDataRecord
|
||||
{
|
||||
public SqlDataRecord (params SqlMetaData[] metaData)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual bool GetBoolean (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual byte GetByte (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual long GetBytes (int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual char GetChar (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual long GetChars (int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual IDataReader GetData (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual string GetDataTypeName (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual DateTime GetDateTime (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual DateTimeOffset GetDateTimeOffset (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual decimal GetDecimal (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual double GetDouble (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual Type GetFieldType (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual float GetFloat (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual Guid GetGuid (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual short GetInt16 (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual int GetInt32 (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual long GetInt64 (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual string GetName (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual int GetOrdinal (string name)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlBinary GetSqlBinary (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlBoolean GetSqlBoolean (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlByte GetSqlByte (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlBytes GetSqlBytes (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlChars GetSqlChars (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlDateTime GetSqlDateTime (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlDecimal GetSqlDecimal (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlDouble GetSqlDouble (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual Type GetSqlFieldType (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlGuid GetSqlGuid (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlInt16 GetSqlInt16 (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlInt32 GetSqlInt32 (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlInt64 GetSqlInt64 (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlMetaData GetSqlMetaData (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlMoney GetSqlMoney (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlSingle GetSqlSingle (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlString GetSqlString (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual object GetSqlValue (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual int GetSqlValues (object[] values)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual SqlXml GetSqlXml (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual string GetString (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual TimeSpan GetTimeSpan (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual object GetValue (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual int GetValues (object[] values)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetBoolean (int ordinal, bool value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetByte (int ordinal, byte value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetBytes (int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetChar (int ordinal, char value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetChars (int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetDateTime (int ordinal, DateTime value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetDateTimeOffset (int ordinal, DateTimeOffset value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetDBNull (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetDecimal (int ordinal, decimal value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetDouble (int ordinal, double value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetFloat (int ordinal, float value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetGuid (int ordinal, Guid value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetInt16 (int ordinal, short value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetInt32 (int ordinal, int value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetInt64 (int ordinal, long value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlBinary (int ordinal, SqlBinary value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlBoolean (int ordinal, SqlBoolean value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlByte (int ordinal, SqlByte value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlBytes (int ordinal, SqlBytes value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlChars (int ordinal, SqlChars value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlDateTime (int ordinal, SqlDateTime value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlDecimal (int ordinal, SqlDecimal value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlDouble (int ordinal, SqlDouble value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlGuid (int ordinal, SqlGuid value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlInt16 (int ordinal, SqlInt16 value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlInt32 (int ordinal, SqlInt32 value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlInt64 (int ordinal, SqlInt64 value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlMoney (int ordinal, SqlMoney value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlSingle (int ordinal, SqlSingle value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlString (int ordinal, SqlString value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetSqlXml (int ordinal, SqlXml value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetString (int ordinal, string value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetTimeSpan (int ordinal, TimeSpan value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void SetValue (int ordinal, object value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual int SetValues (params object[] values)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual bool IsDBNull (int ordinal)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual int FieldCount {
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual object this [string name] {
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual object this [int ordinal] {
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,10 @@
|
||||
//
|
||||
// System.Data.SqlClient.SqlParameterConverter.cs
|
||||
// SqlPipe.cs
|
||||
//
|
||||
// Author:
|
||||
// Tim Coleman (tim@timcoleman.com)
|
||||
// Authors:
|
||||
// Marek Safar <marek.safar@gmail.com>
|
||||
//
|
||||
// Copyright (C) Tim Coleman, 2002
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004 Novell, Inc (http://www.novell.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
|
||||
@@ -31,36 +27,51 @@
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace System.Data.SqlClient {
|
||||
internal sealed class SqlParameterConverter : ExpandableObjectConverter
|
||||
namespace Microsoft.SqlServer.Server
|
||||
{
|
||||
public sealed class SqlPipe
|
||||
{
|
||||
#region Constructors
|
||||
private SqlPipe ()
|
||||
{
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public SqlParameterConverter ()
|
||||
public bool IsSendingResults => false;
|
||||
|
||||
public void ExecuteAndSend (SqlCommand command)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#endregion // Constructors
|
||||
|
||||
#region Methods
|
||||
|
||||
[MonoTODO]
|
||||
public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
|
||||
public void Send (string message)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
|
||||
public void Send (SqlDataReader reader)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#endregion // Methods
|
||||
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 ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,94 +0,0 @@
|
||||
// help building System.Data without win32-specific p/invokes
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
internal static partial class Bid {
|
||||
internal enum ApiGroup : uint {
|
||||
Pooling = 0x00001000,
|
||||
Correlation = 0x00040000,
|
||||
}
|
||||
|
||||
internal static bool AdvancedOn {
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
internal static bool IsOn (ApiGroup flag)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
[Conditional ("BID")]
|
||||
internal static void Trace (params object[] a)
|
||||
{
|
||||
}
|
||||
|
||||
[Conditional ("BID")]
|
||||
internal static void PoolerTrace (params object[] a)
|
||||
{
|
||||
}
|
||||
|
||||
// out method can't be conditional
|
||||
internal static void ScopeEnter (out IntPtr p, params object[] a)
|
||||
{
|
||||
p = IntPtr.Zero;
|
||||
}
|
||||
|
||||
[Conditional ("BID")]
|
||||
internal static void ScopeLeave (ref IntPtr a)
|
||||
{
|
||||
}
|
||||
|
||||
// out method can't be conditional
|
||||
internal static void PoolerScopeEnter (out IntPtr p, string a, System.Int32 b)
|
||||
{
|
||||
p = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
[ConditionalAttribute ("CODE_ANALYSIS")]
|
||||
[AttributeUsage (AttributeTargets.Method)]
|
||||
internal sealed class BidMethodAttribute : Attribute {
|
||||
}
|
||||
|
||||
[ConditionalAttribute ("CODE_ANALYSIS")]
|
||||
[AttributeUsage (AttributeTargets.Parameter | AttributeTargets.Method, AllowMultiple=true)]
|
||||
internal sealed class BidArgumentTypeAttribute : Attribute {
|
||||
internal BidArgumentTypeAttribute (Type bidArgumentType)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
namespace System.Data.Common {
|
||||
|
||||
internal static class UnsafeNativeMethods {
|
||||
|
||||
// note: likely unreachable code - as this never worked on mono
|
||||
internal static int lstrlenW (IntPtr p)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
static internal int CreateWellKnownSid (int sidType, byte[] domainSid, byte[] resultSid, ref uint resultSidLength )
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
static internal bool CheckTokenMembership (IntPtr tokenHandle, byte[] sidToCheck, out bool isMember)
|
||||
{
|
||||
isMember = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
static internal bool GetTokenInformation (IntPtr tokenHandle, uint token_class, IntPtr tokenStruct, uint tokenInformationLength, ref uint tokenString)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static internal bool ConvertSidToStringSidW (IntPtr sid, out IntPtr stringSid)
|
||||
{
|
||||
stringSid = IntPtr.Zero;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
using System;
|
||||
|
||||
class NativeOledbWrapper
|
||||
{
|
||||
const string msg = "It is native method used by Microsoft System.Data.OleDb implementation that Mono or non-Windows platform does not support.";
|
||||
|
||||
#if !MOBILE
|
||||
public static int SizeOfPROPVARIANT {
|
||||
get { throw new NotSupportedException (msg); }
|
||||
}
|
||||
|
||||
public static int ITransactionAbort (IntPtr handle)
|
||||
{
|
||||
throw new NotSupportedException (msg);
|
||||
}
|
||||
|
||||
public static int ITransactionCommit (IntPtr handle)
|
||||
{
|
||||
throw new NotSupportedException (msg);
|
||||
}
|
||||
|
||||
public static bool MemoryCompare (IntPtr dst, IntPtr src, int bytes)
|
||||
{
|
||||
throw new NotSupportedException (msg);
|
||||
}
|
||||
|
||||
public static IntPtr IChapteredRowsetReleaseChapter (IntPtr handle, IntPtr chapter)
|
||||
{
|
||||
throw new NotSupportedException (msg);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
public static int MemoryCopy (IntPtr dst, IntPtr src, int bytes)
|
||||
{
|
||||
throw new NotSupportedException (msg);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace System.Data.SqlClient
|
||||
{
|
||||
public enum PoolBlockingPeriod
|
||||
{
|
||||
Auto,
|
||||
AlwaysBlock,
|
||||
NeverBlock
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
c103d0d1e3bf658a2717757fb01d2e7b56405504
|
||||
@@ -1,126 +0,0 @@
|
||||
namespace System.Data {
|
||||
static partial class Res {
|
||||
public const string ADP_InvalidMixedUsageOfAccessTokenAndAuthentication = "ADP_InvalidMixedUsageOfAccessTokenAndAuthentication";
|
||||
public const string ADP_InvalidMixedUsageOfAccessTokenAndContextConnection = "ADP_InvalidMixedUsageOfAccessTokenAndContextConnection";
|
||||
public const string ADP_InvalidMixedUsageOfAccessTokenAndCredential = "ADP_InvalidMixedUsageOfAccessTokenAndCredential";
|
||||
public const string ADP_InvalidMixedUsageOfAccessTokenAndIntegratedSecurity = "ADP_InvalidMixedUsageOfAccessTokenAndIntegratedSecurity";
|
||||
public const string ADP_InvalidMixedUsageOfAccessTokenAndUserIDPassword = "ADP_InvalidMixedUsageOfAccessTokenAndUserIDPassword";
|
||||
public const string ADP_InvalidMixedUsageOfCredentialAndAccessToken = "ADP_InvalidMixedUsageOfCredentialAndAccessToken";
|
||||
|
||||
public const string DbConnectionString_Authentication = "DbConnectionString_Authentication";
|
||||
|
||||
public const string SQL_AuthenticationAndIntegratedSecurity = "SQL_AuthenticationAndIntegratedSecurity";
|
||||
public const string SQL_CredentialsNotProvided = "SQL_CredentialsNotProvided";
|
||||
public const string SQL_IntegratedWithUserIDAndPassword = "SQL_IntegratedWithUserIDAndPassword";
|
||||
public const string SQL_ParsingErrorAuthLibraryType = "SQL_ParsingErrorAuthLibraryType";
|
||||
public const string SQL_ParsingErrorFeatureId = "SQL_ParsingErrorFeatureId";
|
||||
public const string SQL_ParsingErrorLength = "SQL_ParsingErrorLength";
|
||||
public const string SQL_ParsingErrorOffset = "SQL_ParsingErrorOffset";
|
||||
public const string SQL_ParsingErrorStatus = "SQL_ParsingErrorStatus";
|
||||
public const string SQL_ParsingErrorToken = "SQL_ParsingErrorToken";
|
||||
public const string SQL_ParsingErrorValue = "SQL_ParsingErrorValue";
|
||||
public const string SQL_ParsingErrorWithState = "SQL_ParsingErrorWithState";
|
||||
public const string SQL_SettingCredentialWithIntegrated = "SQL_SettingCredentialWithIntegrated";
|
||||
public const string SQL_SettingIntegratedWithCredential = "SQL_SettingIntegratedWithCredential";
|
||||
|
||||
public const string TCE_BatchedUpdateColumnEncryptionSettingMismatch = "TCE_BatchedUpdateColumnEncryptionSettingMismatch";
|
||||
public const string TCE_CanOnlyCallOnce = "TCE_CanOnlyCallOnce";
|
||||
public const string TCE_CertificateNotFound = "TCE_CertificateNotFound";
|
||||
public const string TCE_CertificateNotFoundSysErr = "TCE_CertificateNotFoundSysErr";
|
||||
public const string TCE_CertificateWithNoPrivateKey = "TCE_CertificateWithNoPrivateKey";
|
||||
public const string TCE_CertificateWithNoPrivateKeySysErr = "TCE_CertificateWithNoPrivateKeySysErr";
|
||||
public const string TCE_ColumnDecryptionFailed = "TCE_ColumnDecryptionFailed";
|
||||
public const string TCE_DbConnectionString_ColumnEncryptionSetting = "TCE_DbConnectionString_ColumnEncryptionSetting";
|
||||
public const string TCE_DecryptionFailed = "TCE_DecryptionFailed";
|
||||
public const string TCE_EmptyCertificateThumbprint = "TCE_EmptyCertificateThumbprint";
|
||||
public const string TCE_EmptyCertificateThumbprintSysErr = "TCE_EmptyCertificateThumbprintSysErr";
|
||||
public const string TCE_EmptyColumnEncryptionKey = "TCE_EmptyColumnEncryptionKey";
|
||||
public const string TCE_EmptyEncryptedColumnEncryptionKey = "TCE_EmptyEncryptedColumnEncryptionKey";
|
||||
public const string TCE_EmptyProviderName = "TCE_EmptyProviderName";
|
||||
public const string TCE_InvalidAlgorithmVersion = "TCE_InvalidAlgorithmVersion";
|
||||
public const string TCE_InvalidAlgorithmVersionInEncryptedCEK = "TCE_InvalidAlgorithmVersionInEncryptedCEK";
|
||||
public const string TCE_InvalidAuthenticationTag = "TCE_InvalidAuthenticationTag";
|
||||
public const string TCE_InvalidCertificateLocation = "TCE_InvalidCertificateLocation";
|
||||
public const string TCE_InvalidCertificateLocationSysErr = "TCE_InvalidCertificateLocationSysErr";
|
||||
public const string TCE_InvalidCertificatePath = "TCE_InvalidCertificatePath";
|
||||
public const string TCE_InvalidCertificatePathSysErr = "TCE_InvalidCertificatePathSysErr";
|
||||
public const string TCE_InvalidCertificateSignature = "TCE_InvalidCertificateSignature";
|
||||
public const string TCE_InvalidCertificateStore = "TCE_InvalidCertificateStore";
|
||||
public const string TCE_InvalidCertificateStoreSysErr = "TCE_InvalidCertificateStoreSysErr";
|
||||
public const string TCE_InvalidCipherTextSize = "TCE_InvalidCipherTextSize";
|
||||
public const string TCE_InvalidCiphertextLengthInEncryptedCEK = "TCE_InvalidCiphertextLengthInEncryptedCEK";
|
||||
public const string TCE_InvalidCustomKeyStoreProviderName = "TCE_InvalidCustomKeyStoreProviderName";
|
||||
public const string TCE_InvalidEncryptionKeyOrdinal = "TCE_InvalidEncryptionKeyOrdinal";
|
||||
public const string TCE_InvalidEncryptionType = "TCE_InvalidEncryptionType";
|
||||
public const string TCE_InvalidKeyEncryptionAlgorithm = "TCE_InvalidKeyEncryptionAlgorithm";
|
||||
public const string TCE_InvalidKeyEncryptionAlgorithmSysErr = "TCE_InvalidKeyEncryptionAlgorithmSysErr";
|
||||
public const string TCE_InvalidKeySize = "TCE_InvalidKeySize";
|
||||
public const string TCE_InvalidSignatureInEncryptedCEK = "TCE_InvalidSignatureInEncryptedCEK";
|
||||
public const string TCE_KeyDecryptionFailed = "TCE_KeyDecryptionFailed";
|
||||
public const string TCE_KeyDecryptionFailedCertStore = "TCE_KeyDecryptionFailedCertStore";
|
||||
public const string TCE_LargeCertificatePathLength = "TCE_LargeCertificatePathLength";
|
||||
public const string TCE_LargeCertificatePathLengthSysErr = "TCE_LargeCertificatePathLengthSysErr";
|
||||
public const string TCE_NotSupportedByServer = "TCE_NotSupportedByServer";
|
||||
public const string TCE_NullCertificatePath = "TCE_NullCertificatePath";
|
||||
public const string TCE_NullCertificatePathSysErr = "TCE_NullCertificatePathSysErr";
|
||||
public const string TCE_NullCipherText = "TCE_NullCipherText";
|
||||
public const string TCE_NullColumnEncryptionAlgorithm = "TCE_NullColumnEncryptionAlgorithm";
|
||||
public const string TCE_NullColumnEncryptionKey = "TCE_NullColumnEncryptionKey";
|
||||
public const string TCE_NullColumnEncryptionKeySysErr = "TCE_NullColumnEncryptionKeySysErr";
|
||||
public const string TCE_NullCustomKeyStoreProviderDictionary = "TCE_NullCustomKeyStoreProviderDictionary";
|
||||
public const string TCE_NullEncryptedColumnEncryptionKey = "TCE_NullEncryptedColumnEncryptionKey";
|
||||
public const string TCE_NullKeyEncryptionAlgorithm = "TCE_NullKeyEncryptionAlgorithm";
|
||||
public const string TCE_NullKeyEncryptionAlgorithmSysErr = "TCE_NullKeyEncryptionAlgorithmSysErr";
|
||||
public const string TCE_NullPlainText = "TCE_NullPlainText";
|
||||
public const string TCE_NullProviderValue = "TCE_NullProviderValue";
|
||||
public const string TCE_ParamDecryptionFailed = "TCE_ParamDecryptionFailed";
|
||||
public const string TCE_ParamEncryptionFailed = "TCE_ParamEncryptionFailed";
|
||||
public const string TCE_ParamEncryptionMetaDataMissing = "TCE_ParamEncryptionMetaDataMissing";
|
||||
public const string TCE_ParamInvalidForceColumnEncryptionSetting = "TCE_ParamInvalidForceColumnEncryptionSetting";
|
||||
public const string TCE_ParamUnExpectedEncryptionMetadata = "TCE_ParamUnExpectedEncryptionMetadata";
|
||||
public const string TCE_ProcEncryptionMetaDataMissing = "TCE_ProcEncryptionMetaDataMissing";
|
||||
public const string TCE_SequentialAccessNotSupportedOnEncryptedColumn = "TCE_SequentialAccessNotSupportedOnEncryptedColumn";
|
||||
public const string TCE_SqlCommand_ColumnEncryptionSetting = "TCE_SqlCommand_ColumnEncryptionSetting";
|
||||
public const string TCE_SqlConnection_TrustedColumnMasterKeyPaths = "TCE_SqlConnection_TrustedColumnMasterKeyPaths";
|
||||
public const string TCE_SqlParameter_ForceColumnEncryption = "TCE_SqlParameter_ForceColumnEncryption";
|
||||
public const string TCE_StreamNotSupportOnEncryptedColumn = "TCE_StreamNotSupportOnEncryptedColumn";
|
||||
public const string TCE_UnexpectedDescribeParamFormat = "TCE_UnexpectedDescribeParamFormat";
|
||||
public const string TCE_UnknownColumnEncryptionAlgorithm = "TCE_UnknownColumnEncryptionAlgorithm";
|
||||
public const string TCE_UnknownColumnEncryptionAlgorithmId = "TCE_UnknownColumnEncryptionAlgorithmId";
|
||||
public const string TCE_UnrecognizedKeyStoreProviderName = "TCE_UnrecognizedKeyStoreProviderName";
|
||||
public const string TCE_UnsupportedDatatype = "TCE_UnsupportedDatatype";
|
||||
public const string TCE_UnsupportedNormalizationVersion = "TCE_UnsupportedNormalizationVersion";
|
||||
public const string TCE_UntrustedKeyPath = "TCE_UntrustedKeyPath";
|
||||
public const string TCE_VeryLargeCiphertext = "TCE_VeryLargeCiphertext";
|
||||
public const string DbConnectionString_TransparentNetworkIPResolution = "DbConnectionString_TransparentNetworkIPResolution";
|
||||
public const string TCE_NullCspPathSysErr = "TCE_NullCspPathSysErr";
|
||||
public const string TCE_NullCspPath = "TCE_NullCspPath";
|
||||
public const string TCE_NullCngPathSysErr = "TCE_NullCngPathSysErr";
|
||||
public const string TCE_NullCngPath = "TCE_NullCngPath";
|
||||
public const string TCE_InvalidCspPathSysErr = "TCE_InvalidCspPathSysErr";
|
||||
public const string TCE_InvalidCspPath = "TCE_InvalidCspPath";
|
||||
public const string TCE_InvalidCngPathSysErr = "TCE_InvalidCngPathSysErr";
|
||||
public const string TCE_InvalidCngPath = "TCE_InvalidCngPath";
|
||||
public const string TCE_EmptyCspNameSysErr = "TCE_EmptyCspNameSysErr";
|
||||
public const string TCE_EmptyCspName = "TCE_EmptyCspName";
|
||||
public const string TCE_EmptyCngNameSysErr = "TCE_EmptyCngNameSysErr";
|
||||
public const string TCE_EmptyCngName = "TCE_EmptyCngName";
|
||||
public const string TCE_EmptyCspKeyIdSysErr = "TCE_EmptyCspKeyIdSysErr";
|
||||
public const string TCE_EmptyCspKeyId = "TCE_EmptyCspKeyId";
|
||||
public const string TCE_EmptyCngKeyIdSysErr = "TCE_EmptyCngKeyIdSysErr";
|
||||
public const string TCE_EmptyCngKeyId = "TCE_EmptyCngKeyId";
|
||||
public const string TCE_InvalidCspNameSysErr = "TCE_InvalidCspNameSysErr";
|
||||
public const string TCE_InvalidCspName = "TCE_InvalidCspName";
|
||||
public const string TCE_InvalidCspKeyIdSysErr = "TCE_InvalidCspKeyIdSysErr";
|
||||
public const string TCE_InvalidCspKeyId = "TCE_InvalidCspKeyId";
|
||||
public const string TCE_InvalidCngKeySysErr = "TCE_InvalidCngKeySysErr";
|
||||
public const string TCE_InvalidCngKey = "TCE_InvalidCngKey";
|
||||
public const string TCE_InvalidCiphertextLengthInEncryptedCEKCsp = "TCE_InvalidCiphertextLengthInEncryptedCEKCsp";
|
||||
public const string TCE_InvalidCiphertextLengthInEncryptedCEKCng = "TCE_InvalidCiphertextLengthInEncryptedCEKCng";
|
||||
public const string TCE_InvalidSignatureInEncryptedCEKCsp = "TCE_InvalidSignatureInEncryptedCEKCsp";
|
||||
public const string TCE_InvalidSignatureInEncryptedCEKCng = "TCE_InvalidSignatureInEncryptedCEKCng";
|
||||
public const string TCE_InvalidSignature = "TCE_InvalidSignature";
|
||||
public const string GT_Disabled = "GT_Disabled";
|
||||
public const string GT_UnsupportedSysTxVersion = "GT_UnsupportedSysTxVersion";
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Data
|
||||
{
|
||||
sealed class ResCategoryAttribute : CategoryAttribute
|
||||
{
|
||||
public ResCategoryAttribute (string category)
|
||||
: base (category)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Data
|
||||
{
|
||||
sealed class ResDescriptionAttribute : DescriptionAttribute
|
||||
{
|
||||
public ResDescriptionAttribute (string description)
|
||||
: base (description)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace System.Data.SqlClient
|
||||
{
|
||||
class SqlInternalConnectionTds
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
using System;
|
||||
|
||||
class Win32NativeMethods
|
||||
{
|
||||
public static bool IsTokenRestrictedWrapper (IntPtr token)
|
||||
{
|
||||
throw new NotSupportedException ("It is native method used by Microsoft System.Data implementation that Mono or non-Windows platform does not support.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
namespace System.Data.ProviderBase
|
||||
{
|
||||
class DbConnectionPoolCounters
|
||||
{
|
||||
}
|
||||
|
||||
class DbConnectionPoolCountersNoCounters : DbConnectionPoolCounters
|
||||
{
|
||||
public static DbConnectionPoolCounters SingletonInstance { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
//
|
||||
// System.Data.Common.DbConnectionStringBuilderHelper.cs
|
||||
//
|
||||
// Author:
|
||||
// Sureshkumar T (tsureshkumar@novell.com)
|
||||
//
|
||||
// Copyright (C) 2004 Novell, Inc (http://www.novell.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;
|
||||
using System.Data.Common;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.Data.Common
|
||||
{
|
||||
internal sealed class DbConnectionStringBuilderHelper
|
||||
{
|
||||
#region Methods
|
||||
public static int ConvertToInt32 (object value)
|
||||
{
|
||||
return Int32.Parse (value.ToString (), CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
public static bool ConvertToBoolean (object value)
|
||||
{
|
||||
if (value == null)
|
||||
throw new ArgumentNullException ("null value cannot be converted" +
|
||||
" to boolean");
|
||||
string upper = value.ToString ().ToUpper ().Trim ();
|
||||
if (upper == "YES" || upper == "TRUE")
|
||||
return true;
|
||||
if (upper == "NO" || upper == "FALSE")
|
||||
return false;
|
||||
throw new ArgumentException (String.Format ("Invalid boolean value: {0}",
|
||||
value.ToString ()));
|
||||
}
|
||||
#endregion // Methods
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace System.Data.Common
|
||||
{
|
||||
internal class DbTypes
|
||||
{
|
||||
#region .Net types constants
|
||||
|
||||
internal static readonly Type TypeOfBoolean = typeof(Boolean);
|
||||
internal static readonly Type TypeOfSByte = typeof(SByte);
|
||||
internal static readonly Type TypeOfChar = typeof(Char);
|
||||
internal static readonly Type TypeOfInt16 = typeof(Int16);
|
||||
internal static readonly Type TypeOfInt32 = typeof(Int32);
|
||||
internal static readonly Type TypeOfInt64 = typeof(Int64);
|
||||
internal static readonly Type TypeOfByte = typeof(Byte);
|
||||
internal static readonly Type TypeOfUInt16 = typeof(UInt16);
|
||||
internal static readonly Type TypeOfUInt32 = typeof(UInt32);
|
||||
internal static readonly Type TypeOfUInt64 = typeof(UInt64);
|
||||
internal static readonly Type TypeOfDouble = typeof(Double);
|
||||
internal static readonly Type TypeOfSingle = typeof(Single);
|
||||
internal static readonly Type TypeOfDecimal = typeof(Decimal);
|
||||
internal static readonly Type TypeOfString = typeof(String);
|
||||
internal static readonly Type TypeOfDateTime = typeof(DateTime);
|
||||
internal static readonly Type TypeOfObject = typeof(object);
|
||||
internal static readonly Type TypeOfGuid = typeof(Guid);
|
||||
internal static readonly Type TypeOfType = typeof(Type);
|
||||
|
||||
// additional types
|
||||
internal static readonly Type TypeOfByteArray = typeof(Byte[]);
|
||||
internal static readonly Type TypeOfFloat = typeof (float);
|
||||
internal static readonly Type TypeOfTimespan = typeof (TimeSpan);
|
||||
|
||||
#endregion // .Net types constants
|
||||
}
|
||||
}
|
||||
@@ -1,234 +0,0 @@
|
||||
//
|
||||
// System.Data.Common.ExceptionHelper
|
||||
//
|
||||
// Author:
|
||||
// Boris Kirzner (borisk@mainsoft.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.Data.Common
|
||||
{
|
||||
internal sealed class ExceptionHelper
|
||||
{
|
||||
internal static ArgumentException InvalidSizeValue (int value)
|
||||
{
|
||||
string [] args = new string [] {value.ToString ()};
|
||||
return new ArgumentException (GetExceptionMessage ("Invalid parameter Size value '{0}'. The value must be greater than or equal to 0.",args));
|
||||
}
|
||||
|
||||
internal static void CheckEnumValue (Type enumType, object value)
|
||||
{
|
||||
if (!Enum.IsDefined (enumType, value))
|
||||
throw InvalidEnumValueException (enumType.Name, value);
|
||||
}
|
||||
|
||||
internal static ArgumentException InvalidEnumValueException (String enumeration, object value)
|
||||
{
|
||||
string msg = string.Format (CultureInfo.InvariantCulture,
|
||||
"The {0} enumeration value, {1}, is invalid.",
|
||||
enumeration, value);
|
||||
return new ArgumentOutOfRangeException (enumeration, msg);
|
||||
}
|
||||
|
||||
internal static ArgumentOutOfRangeException InvalidDataRowVersion (DataRowVersion value)
|
||||
{
|
||||
object [] args = new object [] { "DataRowVersion", value.ToString () } ;
|
||||
return new ArgumentOutOfRangeException (GetExceptionMessage ("{0}: Invalid DataRow Version enumeration value: {1}",args));
|
||||
}
|
||||
|
||||
internal static ArgumentOutOfRangeException InvalidParameterDirection (ParameterDirection value)
|
||||
{
|
||||
object [] args = new object [] { "ParameterDirection", value.ToString () } ;
|
||||
return new ArgumentOutOfRangeException (GetExceptionMessage ("Invalid direction '{0}' for '{1}' parameter.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException NoStoredProcedureExists (string procedureName) {
|
||||
object [] args = new object [1] { procedureName } ;
|
||||
return new InvalidOperationException (GetExceptionMessage ("The stored procedure '{0}' doesn't exist.", args));
|
||||
}
|
||||
|
||||
internal static ArgumentNullException ArgumentNull (string parameter)
|
||||
{
|
||||
return new ArgumentNullException (parameter);
|
||||
}
|
||||
|
||||
internal static InvalidOperationException TransactionRequired ()
|
||||
{
|
||||
return new InvalidOperationException (GetExceptionMessage ("Execute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized."));
|
||||
}
|
||||
|
||||
internal static ArgumentOutOfRangeException InvalidOleDbType (int value)
|
||||
{
|
||||
string [] args = new string [] { value.ToString() };
|
||||
return new ArgumentOutOfRangeException (GetExceptionMessage ("Invalid OleDbType enumeration value: {0}",args));
|
||||
}
|
||||
|
||||
internal static ArgumentException InvalidDbType(int value)
|
||||
{
|
||||
string [] args = new string [] { value.ToString () };
|
||||
return new ArgumentException (GetExceptionMessage ("No mapping exists from DbType {0} to a known {1}.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException DeriveParametersNotSupported(Type type,CommandType commandType)
|
||||
{
|
||||
string [] args = new string [] { type.ToString(),commandType.ToString() };
|
||||
return new InvalidOperationException (GetExceptionMessage ("{0} DeriveParameters only supports CommandType.StoredProcedure, not CommandType.{1}.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException ReaderClosed (string mehodName)
|
||||
{
|
||||
string [] args = new string [] { mehodName };
|
||||
return new InvalidOperationException (GetExceptionMessage ("Invalid attempt to {0} when reader is closed.",args));
|
||||
}
|
||||
|
||||
internal static ArgumentOutOfRangeException InvalidSqlDbType (int value)
|
||||
{
|
||||
string [] args = new string [] { value.ToString () };
|
||||
return new ArgumentOutOfRangeException (GetExceptionMessage ("{0}: Invalid SqlDbType enumeration value: {1}.",args));
|
||||
}
|
||||
|
||||
internal static ArgumentException UnknownDataType (string type1, string type2)
|
||||
{
|
||||
string [] args = new string [] { type1, type2 };
|
||||
return new ArgumentException (GetExceptionMessage ("No mapping exists from DbType {0} to a known {1}.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException TransactionNotInitialized ()
|
||||
{
|
||||
return new InvalidOperationException (GetExceptionMessage ("Execute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized."));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException TransactionNotUsable (Type type)
|
||||
{
|
||||
return new InvalidOperationException (string.Format (
|
||||
CultureInfo.InvariantCulture,
|
||||
"This {0} has completed; it is no longer usable.",
|
||||
type.Name));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException ParametersNotInitialized (int parameterPosition,string parameterName,string parameterType)
|
||||
{
|
||||
object [] args = new object [] { parameterPosition, parameterName, parameterType };
|
||||
return new InvalidOperationException (GetExceptionMessage ("Parameter {0}: '{1}', the property DbType is uninitialized: OleDbType.{2}.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException WrongParameterSize(string provider)
|
||||
{
|
||||
string [] args = new string [] { provider };
|
||||
return new InvalidOperationException (GetExceptionMessage ("{0}.Prepare method requires all variable length parameters to have an explicitly set non-zero Size.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException ConnectionNotOpened (string operationName, string connectionState)
|
||||
{
|
||||
object [] args = new object [] { operationName, connectionState };
|
||||
return new InvalidOperationException (GetExceptionMessage ("{0} requires an open and available Connection. The connection's current state is {1}.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException ConnectionNotInitialized (string methodName)
|
||||
{
|
||||
object [] args = new object [] { methodName };
|
||||
return new InvalidOperationException (GetExceptionMessage ("{0}: Connection property has not been initialized.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException OpenConnectionRequired (string methodName, object connectionState)
|
||||
{
|
||||
object [] args = new object [] { methodName, connectionState };
|
||||
return new InvalidOperationException (GetExceptionMessage ("{0} requires an open and available Connection. The connection's current state is {1}.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException OpenedReaderExists ()
|
||||
{
|
||||
return new InvalidOperationException (GetExceptionMessage ("There is already an open DataReader associated with this Connection which must be closed first."));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException ConnectionAlreadyOpen (object connectionState)
|
||||
{
|
||||
object [] args = new object [] { connectionState };
|
||||
return new InvalidOperationException (GetExceptionMessage ("The connection is already Open (state={0}).",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException ConnectionClosed ()
|
||||
{
|
||||
return new InvalidOperationException ("Invalid operation. The Connection is closed.");
|
||||
}
|
||||
|
||||
internal static InvalidOperationException ConnectionStringNotInitialized ()
|
||||
{
|
||||
return new InvalidOperationException (GetExceptionMessage ("The ConnectionString property has not been initialized."));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException ConnectionIsBusy (object commandType,object connectionState)
|
||||
{
|
||||
object [] args = new object [] { commandType.ToString (), connectionState.ToString () };
|
||||
return new InvalidOperationException (GetExceptionMessage ("The {0} is currently busy {1}.",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException NotAllowedWhileConnectionOpen (string propertyName, object connectionState)
|
||||
{
|
||||
object [] args = new object [] { propertyName, connectionState };
|
||||
return new InvalidOperationException (GetExceptionMessage ("Not allowed to change the '{0}' property while the connection (state={1}).",args));
|
||||
}
|
||||
|
||||
internal static ArgumentException OleDbNoProviderSpecified ()
|
||||
{
|
||||
return new ArgumentException (GetExceptionMessage ("An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'."));
|
||||
}
|
||||
|
||||
internal static ArgumentException InvalidValueForKey (string key)
|
||||
{
|
||||
string [] args = new string [] { key };
|
||||
return new ArgumentException (String.Format ("Invalid value for key {0}",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException ParameterSizeNotInitialized( int parameterIndex, string parameterName,string parameterType,int parameterSize)
|
||||
{
|
||||
object [] args = new object [] { parameterIndex.ToString (), parameterName, parameterType, parameterSize.ToString () };
|
||||
return new InvalidOperationException (GetExceptionMessage ("Parameter {0}: '{1}' of type: {2}, the property Size has an invalid size: {3}",args));
|
||||
}
|
||||
|
||||
internal static ArgumentException InvalidUpdateStatus (UpdateStatus status)
|
||||
{
|
||||
object [] args = new object [] { status };
|
||||
return new ArgumentException (GetExceptionMessage ("Invalid UpdateStatus: {0}",args));
|
||||
}
|
||||
|
||||
internal static InvalidOperationException UpdateRequiresCommand (string command)
|
||||
{
|
||||
object [] args = new object [] { command };
|
||||
return new InvalidOperationException (GetExceptionMessage ("Auto SQL generation during {0} requires a valid SelectCommand.",args));
|
||||
}
|
||||
|
||||
internal static DataException RowUpdatedError ()
|
||||
{
|
||||
return new DataException (GetExceptionMessage ("RowUpdatedEvent: Errors occurred; no additional is information available."));
|
||||
}
|
||||
|
||||
internal static ArgumentNullException CollectionNoNullsAllowed (object collection, object objectsType)
|
||||
{
|
||||
object [] args = new object [] {collection.GetType ().ToString (), objectsType.ToString ()};
|
||||
return new ArgumentNullException (GetExceptionMessage ("The {0} only accepts non-null {1} type objects.", args));
|
||||
}
|
||||
|
||||
internal static ArgumentException CollectionAlreadyContains(object objectType,string propertyName, object propertyValue, object collection)
|
||||
{
|
||||
object [] args = new object [] {objectType.ToString (), propertyName, propertyValue, collection.GetType ().ToString ()};
|
||||
return new ArgumentException (GetExceptionMessage ("The {0} with {1} '{2}' is already contained by this {3}.",args));
|
||||
}
|
||||
|
||||
internal static string GetExceptionMessage (string exceptionMessage,object [] args)
|
||||
{
|
||||
if ((args == null) || (args.Length == 0)) {
|
||||
return exceptionMessage;
|
||||
} else {
|
||||
return String.Format (exceptionMessage,args);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string GetExceptionMessage (string exceptionMessage)
|
||||
{
|
||||
return GetExceptionMessage (exceptionMessage, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
//
|
||||
// System.Data.SqlClient.NetworkLibraryConverter.cs
|
||||
//
|
||||
// Author:
|
||||
// Nagappan A (anagappan@novell.com)
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2007 Novell, Inc (http://www.novell.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.ComponentModel;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.Data.SqlClient {
|
||||
internal sealed class NetworkLibraryConverter : ExpandableObjectConverter
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
[MonoTODO]
|
||||
public NetworkLibraryConverter ()
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#endregion // Constructors
|
||||
|
||||
#region Methods
|
||||
|
||||
[MonoTODO]
|
||||
public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#endregion // Methods
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user