From 61559965a188d03456d6f7840a0cdabdf35c2400 Mon Sep 17 00:00:00 2001 From: Egor Bogatov Date: Thu, 19 Oct 2017 18:20:03 +0200 Subject: [PATCH] [System.Data] move to corefx (#4893) * [System.Data] move to corefx * [System.Data] Missing API: SqlTypesSchemaImporters * [System.Data] Missing API: SqlNotification* * [System.Data] Missing API: SqlDataSourceEnumerator * [System.Data] Missing API: SQLDebugging * [System.Data] fix build * [System.Data] remove public API from different assemblies * Apply corefx changes * Hide some PropertiesTest (missing API in corefx) * Missing API: TypedDataSetGenerator*, etc * Missing API: SqlClientMetaDataCollectionNames * Missing API: SqlCredential * SqlMetaDataFactory.cs is actually sqlmetadatafactory.cs (case sensitive) * Missing API: PoolBlockingPeriod * Fix case-sensitive issues * Odbc support (requires changes in corefx) * ODBC support * Re-enable ODBC ProviderTests * Apply corefx changes * temp commit: fix build * Missing API: Microsoft.SqlServer.Server.* * Missing API: DBDataPermission, OdbcPermission, SqlClientPermission * Missing API: DbProviderFactoriesConfigurationHandler, DbProviderConfigurationHandler, DbProviderFactory.CreatePermission * Missing API: DbProviderFactories * Missing API: SqlCommand BeginXXX methods, SqlException.Message, OdbcFactory.CreatePermission * Add System.Data.SqlClient.SqlMetaData.xml (embedded resource) * reorganize *.sources files for win32, macos and linux * bump corefx * [System.Data] API: SqlDataSourceEnumerator, SqlClientFactory, SqlParameter, SqlMetaData * [System.Data] cleanup * [System.Data] mobile profile, cleanup * [System.Data] Fix few odbc tests (changes are in corefx PR) * [System.Data] fix Open_ConnectionString_DatabaseInvalid test * [System.Data] enable all tests * Add AsynchronousProcessing and ConnectionReset to SqlConnectionStringBuilder * [System.Data] fix build * fix all ProvierTests * fix tests (files several issues against the corefx) * system-data code cleanup * system-data code cleanup * add SqlTypesSchemaImporters * remove corefx/RuntimeInformation.cs, add OleDbPermission stub * OleDbPermission should be serializable (fixing tests) * remove ODBC from mobile profile * fix linux build - add 619 (obsolete) to nowarn list. * temp commit * fix a few api diff issues * add OleDbType type (currently exists even in mobile profiles) * add stubs * Add stubs for OleDb * improve oledb stubs * improve oledb stubs * improve oledb stubs * more oledb stubs * add xunit tests from corefx * Add SqlClient corefx tests * use corefx sources for System.Data.DataSetExtensions * Remove [InternalsVisibleTo ("System.Data.DataSetExtensions")] from System.Data * [System.Data] sync with external/corefx * fix linux\macOS builds * Fix xunit tests * System.Data/Makefile cleanup * tabify System.Data * Rollback changes in System.Web & SqlSharpCli * small cleanup * [System.Data] Remove redundant .sources files * [System.Data] update odbc Res.cs * [System.Data] Remove redundant .sources files * fix System.Data.dll.sources (add a blank line) * remove TypeForwarder for DBNull and register xunit tests for System.Data * Bump API snapshot submodule --- external/api-snapshot | 2 +- mcs/class/System.Data.DataSetExtensions/Makefile | 12 +- .../System.Data.DataSetExtensions.dll.sources | 28 +- .../Test/System.Data/DataTableExtensionsTest.cs | 2 + .../System.Data.DataSetExtensions/corefx/SR.cs | 14 + mcs/class/System.Data/Assembly/AssemblyInfo.cs | 1 - mcs/class/System.Data/Makefile | 151 ++---- mcs/class/System.Data/MobileStubs.cs | 94 ---- mcs/class/System.Data/System.Data.dll.sources | 2 + mcs/class/System.Data/System.Data_test.dll.sources | 17 +- .../System.Data/System.Data_xtest.dll.sources | 145 ++++++ .../Test/ProviderTests/Common/ConnectionManager.cs | 16 +- .../System.Data.Odbc/OdbcCommandBuilderTest.cs | 25 +- .../System.Data.SqlClient/SqlCommandTest.cs | 34 +- .../SqlConnectionStringBuilderTest.cs | 6 + .../System.Data.SqlClient/SqlConnectionTest.cs | 17 +- .../System.Data.Odbc/OdbcCommandBuilderTest.cs | 1 + .../Test/System.Data.Odbc/OdbcConnectionTest.cs | 1 + .../Test/System.Data.Odbc/OdbcDataAdapterTest.cs | 11 +- .../System.Data.Sql/SqlNotificationRequestTest.cs | 4 +- .../Test/System.Data.SqlClient/SqlCommandTest.cs | 72 +-- .../SqlConnectionStringBuilderTest.cs | 4 + .../System.Data.SqlClient/SqlConnectionTest.cs | 25 +- mcs/class/System.Data/corefx.common.sources | 525 ++++++++++++++------- mcs/class/System.Data/corefx.unix.sources | 17 + mcs/class/System.Data/corefx/DBCommandBuilder.cs | 91 ---- mcs/class/System.Data/corefx/DataView.cs | 40 -- mcs/class/System.Data/corefx/DbConnection.cs | 4 + .../System.Data/corefx/DbConnectionOptions.cs | 208 ++++++++ mcs/class/System.Data/corefx/DiagnosticListener.cs | 13 + mcs/class/System.Data/corefx/FieldNameLookup.cs | 16 - mcs/class/System.Data/corefx/Index.cs | 21 - mcs/class/System.Data/corefx/Odbc/AdapterUtil.cs | 242 ++++++++++ .../corefx/Odbc/DbConnectionStringCommon.cs | 21 + .../System.Data/corefx/Odbc/OdbcConnection.cs | 30 ++ mcs/class/System.Data/corefx/Odbc/OdbcFactory.cs | 18 + mcs/class/System.Data/corefx/Odbc/Res.cs | 45 ++ mcs/class/System.Data/corefx/OleDbStubs.cs | 485 +++++++++++++++++++ mcs/class/System.Data/corefx/SR.cs | 362 +++++++++++++- mcs/class/System.Data/corefx/Selection.cs | 0 mcs/class/System.Data/corefx/SqlClientFactory.cs | 24 + mcs/class/System.Data/corefx/SqlCommand.cs | 43 ++ mcs/class/System.Data/corefx/SqlConnection.cs | 40 ++ .../corefx/SqlConnectionStringBuilder.cs | 53 +++ mcs/class/System.Data/corefx/SqlDependencyUtils.cs | 14 + mcs/class/System.Data/corefx/SqlException.cs | 32 ++ mcs/class/System.Data/corefx/SqlMetaData.cs | 21 + mcs/class/System.Data/corefx/SqlParameter.cs | 37 ++ .../System.Data/corefx/SqlParameterCollection.cs | 19 + mcs/class/System.Data/corefx/TdsEnums.cs | 33 ++ .../darwin_net_4_x_System.Data.dll.sources | 4 + .../linux_net_4_x_System.Data.dll.sources | 4 + .../System.Data/mobile_System.Data.dll.sources | 70 --- .../System.Data/monodroid_System.Data.dll.sources | 1 - .../System.Data/monotouch_System.Data.dll.sources | 1 - .../monotouch_tv_System.Data.dll.sources | 1 - ...monotouch_watch_System.Data.dll.exclude.sources | 11 - .../monotouch_watch_System.Data.dll.sources | 10 - .../System.Data/net_4_x_System.Data.dll.sources | 239 +++------- .../System.Data/orbis_System.Data.dll.sources | 1 - .../testing_aot_full_System.Data.dll.sources | 1 - .../testing_aot_full_System.Data_test.dll.sources | 1 - .../testing_aot_hybrid_System.Data.dll.sources | 1 - .../System.Data/unreal_System.Data.dll.sources | 1 - .../win32_net_4_x_System.Data.dll.sources | 50 ++ .../System.Data/winaot_System.Data.dll.sources | 1 - .../System.Data/xammac_System.Data.dll.sources | 1 - .../xammac_net_4_5_System.Data.dll.sources | 2 +- .../AccessDataSourceView.cs | 1 - .../System/Data/Odbc/OdbcConnectionOpen.cs | 4 + mcs/tools/sqlsharp/SqlSharpCli.cs | 1 - scripts/ci/run-test-default.sh | 1 + 72 files changed, 2575 insertions(+), 970 deletions(-) rewrite mcs/class/System.Data.DataSetExtensions/System.Data.DataSetExtensions.dll.sources (94%) create mode 100644 mcs/class/System.Data.DataSetExtensions/corefx/SR.cs rewrite mcs/class/System.Data/Makefile (73%) delete mode 100644 mcs/class/System.Data/MobileStubs.cs create mode 100644 mcs/class/System.Data/System.Data.dll.sources create mode 100644 mcs/class/System.Data/System.Data_xtest.dll.sources create mode 100644 mcs/class/System.Data/corefx.unix.sources delete mode 100644 mcs/class/System.Data/corefx/DBCommandBuilder.cs delete mode 100644 mcs/class/System.Data/corefx/DataView.cs create mode 100644 mcs/class/System.Data/corefx/DbConnectionOptions.cs create mode 100644 mcs/class/System.Data/corefx/DiagnosticListener.cs delete mode 100644 mcs/class/System.Data/corefx/FieldNameLookup.cs delete mode 100644 mcs/class/System.Data/corefx/Index.cs create mode 100644 mcs/class/System.Data/corefx/Odbc/AdapterUtil.cs create mode 100644 mcs/class/System.Data/corefx/Odbc/DbConnectionStringCommon.cs create mode 100644 mcs/class/System.Data/corefx/Odbc/OdbcConnection.cs create mode 100644 mcs/class/System.Data/corefx/Odbc/OdbcFactory.cs create mode 100644 mcs/class/System.Data/corefx/Odbc/Res.cs create mode 100644 mcs/class/System.Data/corefx/OleDbStubs.cs delete mode 100644 mcs/class/System.Data/corefx/Selection.cs create mode 100644 mcs/class/System.Data/corefx/SqlClientFactory.cs create mode 100644 mcs/class/System.Data/corefx/SqlCommand.cs create mode 100644 mcs/class/System.Data/corefx/SqlConnection.cs create mode 100644 mcs/class/System.Data/corefx/SqlConnectionStringBuilder.cs create mode 100644 mcs/class/System.Data/corefx/SqlDependencyUtils.cs create mode 100644 mcs/class/System.Data/corefx/SqlException.cs create mode 100644 mcs/class/System.Data/corefx/SqlMetaData.cs create mode 100644 mcs/class/System.Data/corefx/SqlParameter.cs create mode 100644 mcs/class/System.Data/corefx/SqlParameterCollection.cs create mode 100644 mcs/class/System.Data/corefx/TdsEnums.cs create mode 100644 mcs/class/System.Data/darwin_net_4_x_System.Data.dll.sources create mode 100644 mcs/class/System.Data/linux_net_4_x_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/mobile_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/monodroid_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/monotouch_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/monotouch_tv_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/monotouch_watch_System.Data.dll.exclude.sources delete mode 100644 mcs/class/System.Data/monotouch_watch_System.Data.dll.sources rewrite mcs/class/System.Data/net_4_x_System.Data.dll.sources (89%) delete mode 100644 mcs/class/System.Data/orbis_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/testing_aot_full_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/testing_aot_full_System.Data_test.dll.sources delete mode 100644 mcs/class/System.Data/testing_aot_hybrid_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/unreal_System.Data.dll.sources create mode 100644 mcs/class/System.Data/win32_net_4_x_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/winaot_System.Data.dll.sources delete mode 100644 mcs/class/System.Data/xammac_System.Data.dll.sources diff --git a/external/api-snapshot b/external/api-snapshot index 5afb5950c03..fb5c69b48b4 160000 --- a/external/api-snapshot +++ b/external/api-snapshot @@ -1 +1 @@ -Subproject commit 5afb5950c037a3b06ce2005ec5bf436d6be0f860 +Subproject commit fb5c69b48b406c622c977690b4ad66b4cee2284f diff --git a/mcs/class/System.Data.DataSetExtensions/Makefile b/mcs/class/System.Data.DataSetExtensions/Makefile index 0e92b9ee3b4..407e7c2e3b1 100644 --- a/mcs/class/System.Data.DataSetExtensions/Makefile +++ b/mcs/class/System.Data.DataSetExtensions/Makefile @@ -1,19 +1,19 @@ thisdir = class/System.Data.DataSetExtensions -SUBDIRS = Test +SUBDIRS = include ../../build/rules.make LIBRARY = System.Data.DataSetExtensions.dll -TXT_RESOURCE_STRINGS = ../referencesource/System.Data.DataSetExtensions/System.Data.DataSetExtensions.txt - LIB_REFS = System.Core System System.Data System.Xml KEYFILE = ../ecma.pub -LIB_MCS_FLAGS = -nowarn:436 +LIB_MCS_FLAGS = -nowarn:436 -d:COREFX -TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -doc:$(test_lib:.dll=.xml) -nowarn:219 -nowarn:169 $(NUNIT_RESOURCE_FILES:%=/resource:%) +TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:219 -nowarn:169 $(NUNIT_RESOURCE_FILES:%=/resource:%) EXTRA_DISTFILES = $(RESOURCE_FILES) \ Test/System.Data/testdataset1.xml -include ../../build/library.make +RESX_RESOURCE_STRING = \ + ../../../external/corefx/src/System.Data.DataSetExtensions/src/Resources/Strings.resx +include ../../build/library.make diff --git a/mcs/class/System.Data.DataSetExtensions/System.Data.DataSetExtensions.dll.sources b/mcs/class/System.Data.DataSetExtensions/System.Data.DataSetExtensions.dll.sources dissimilarity index 94% index 212303fc27e..7e529ed466f 100644 --- a/mcs/class/System.Data.DataSetExtensions/System.Data.DataSetExtensions.dll.sources +++ b/mcs/class/System.Data.DataSetExtensions/System.Data.DataSetExtensions.dll.sources @@ -1,14 +1,14 @@ -../../build/common/Consts.cs -Assembly/AssemblyInfo.cs -../referencesource/System.Data.DataSetExtensions/System/Data/DataRowComparer.cs -../referencesource/System.Data.DataSetExtensions/System/Data/DataRowExtensions.cs -../referencesource/System.Data.DataSetExtensions/System/Data/DataSetUtil.cs -../referencesource/System.Data.DataSetExtensions/System/Data/DataTableExtensions.cs -../referencesource/System.Data.DataSetExtensions/System/Data/EnumerableRowCollection.cs -../referencesource/System.Data.DataSetExtensions/System/Data/EnumerableRowCollectionExtensions.cs -../referencesource/System.Data.DataSetExtensions/System/Data/LinqDataView.cs -../referencesource/System.Data.DataSetExtensions/System/Data/OrderedEnumerableRowCollection.cs -../referencesource/System.Data.DataSetExtensions/System/Data/SortExpressionBuilder.cs -../referencesource/System.Data.DataSetExtensions/System/Data/TypedTableBase.cs -../referencesource/System.Data.DataSetExtensions/System/Data/TypedTableBaseExtensions.cs -ReferenceSources/Strings.cs +../../build/common/Consts.cs +Assembly/AssemblyInfo.cs +corefx/SR.cs + +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/DataRowComparer.cs +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/DataRowExtensions.cs +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/DataSetUtil.cs +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/DataTableExtensions.cs +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/EnumerableRowCollection.cs +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/EnumerableRowCollectionExtensions.cs +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/OrderedEnumerableRowCollection.cs +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/SortExpressionBuilder.cs +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/TypedTableBase.cs +../../../external/corefx/src/System.Data.DataSetExtensions/src/System/Data/TypedTableBaseExtensions.cs diff --git a/mcs/class/System.Data.DataSetExtensions/Test/System.Data/DataTableExtensionsTest.cs b/mcs/class/System.Data.DataSetExtensions/Test/System.Data/DataTableExtensionsTest.cs index 7049ffb687b..31f2d75a4f7 100644 --- a/mcs/class/System.Data.DataSetExtensions/Test/System.Data/DataTableExtensionsTest.cs +++ b/mcs/class/System.Data.DataSetExtensions/Test/System.Data/DataTableExtensionsTest.cs @@ -89,6 +89,7 @@ namespace MonoTests.System.Data Assert.AreEqual (2, i.Current ["ID"], "#4"); } +#if !COREFX //LinqDataView is not supported yet [Test] public void AsDataView () { @@ -99,5 +100,6 @@ namespace MonoTests.System.Data Assert.AreEqual (1, dv [0] ["ID"], "#1"); Assert.AreEqual (4, dv [1] ["ID"], "#2"); } +#endif } } diff --git a/mcs/class/System.Data.DataSetExtensions/corefx/SR.cs b/mcs/class/System.Data.DataSetExtensions/corefx/SR.cs new file mode 100644 index 00000000000..dc03d0dec60 --- /dev/null +++ b/mcs/class/System.Data.DataSetExtensions/corefx/SR.cs @@ -0,0 +1,14 @@ +// +// This file was generated by resx2sr tool +// + +partial class SR +{ + public const string DataSetLinq_InvalidEnumerationValue = "The {0} enumeration value, {1}, is not valid."; + public const string DataSetLinq_EmptyDataRowSource = "The source contains no DataRows."; + public const string DataSetLinq_NullDataRow = "The source contains a DataRow reference that is null."; + public const string DataSetLinq_CannotLoadDetachedRow = "The source contains a detached DataRow that cannot be copied to the DataTable."; + public const string DataSetLinq_CannotCompareDeletedRow = "The DataRowComparer does not work with DataRows that have been deleted since it only compares current values."; + public const string DataSetLinq_CannotLoadDeletedRow = "The source contains a deleted DataRow that cannot be copied to the DataTable."; + public const string DataSetLinq_NonNullableCast = "Cannot cast DBNull. Value to type '{0}'. Please use a nullable type."; +} diff --git a/mcs/class/System.Data/Assembly/AssemblyInfo.cs b/mcs/class/System.Data/Assembly/AssemblyInfo.cs index accfd22f258..174f5aae26a 100644 --- a/mcs/class/System.Data/Assembly/AssemblyInfo.cs +++ b/mcs/class/System.Data/Assembly/AssemblyInfo.cs @@ -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")] diff --git a/mcs/class/System.Data/Makefile b/mcs/class/System.Data/Makefile dissimilarity index 73% index f24fe8932aa..1491f18e71a 100644 --- a/mcs/class/System.Data/Makefile +++ b/mcs/class/System.Data/Makefile @@ -1,101 +1,50 @@ -thisdir = class/System.Data -SUBDIRS = -include ../../build/rules.make - -LIBRARY = System.Data.dll - -LIB_REFS = System System.Xml System.Core System.Numerics -KEYFILE = ../ecma.pub -LIB_MCS_FLAGS = \ - -nowarn:219,414,649 \ - -d:COREFX \ - -d:PLATFORM_UNIX \ - -d:USEOFFSET \ - -d:MONO_PARTIAL_DATA_IMPORT \ - -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 -endif - -TXT_RESOURCE_STRINGS = ../referencesource/System.Data/system.data.txt - -RESX_RESOURCE_STRING = \ - ../../../external/corefx/src/System.Data.Common/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 - -TEST_MONO_PATH = . - -EXTRA_DISTFILES = \ - $(wildcard Test/System.Data/*.xml) \ - $(wildcard Test/System.Data/*.xsd) \ - $(wildcard Test/System.Xml/*.xml) \ - $(wildcard Test/System.Xml/*.xsd) \ - $(wildcard Test/System.Data/schemas/*.xsd) \ - Test/test-config-file \ - 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 >$@ - -include ../../build/library.make +thisdir = class/System.Data +SUBDIRS = +include ../../build/rules.make + +LIBRARY = System.Data.dll + +LIB_REFS = System System.Xml System.Core System.Numerics System.Transactions +KEYFILE = ../ecma.pub +LIB_MCS_FLAGS = \ + -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 MOBILE_PROFILE +LIB_MCS_FLAGS += -d:NO_CODEDOM -d:NO_OLEDB -d:NO_ODBC -d:NO_CONFIGURATION +else +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.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 = . + +EXTRA_DISTFILES = \ + $(wildcard Test/System.Data/*.xml) \ + $(wildcard Test/System.Data/*.xsd) \ + $(wildcard Test/System.Xml/*.xml) \ + $(wildcard Test/System.Xml/*.xsd) \ + $(wildcard Test/System.Data/schemas/*.xsd) \ + Test/test-config-file \ + Test/System.Data/binserialize/*.bin \ + Test/ProviderTests/sql/*.sql \ + SqliteTest.db \ + corefx.common.sources + +include ../../build/library.make diff --git a/mcs/class/System.Data/MobileStubs.cs b/mcs/class/System.Data/MobileStubs.cs deleted file mode 100644 index 10a235eeb38..00000000000 --- a/mcs/class/System.Data/MobileStubs.cs +++ /dev/null @@ -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; - } - } -} diff --git a/mcs/class/System.Data/System.Data.dll.sources b/mcs/class/System.Data/System.Data.dll.sources new file mode 100644 index 00000000000..c44b1223d4d --- /dev/null +++ b/mcs/class/System.Data/System.Data.dll.sources @@ -0,0 +1,2 @@ +#include corefx.common.sources +#include corefx.unix.sources diff --git a/mcs/class/System.Data/System.Data_test.dll.sources b/mcs/class/System.Data/System.Data_test.dll.sources index aa503bf956e..0f350aa258e 100644 --- a/mcs/class/System.Data/System.Data_test.dll.sources +++ b/mcs/class/System.Data/System.Data_test.dll.sources @@ -105,13 +105,16 @@ System.Data.Odbc/OdbcParameterCollectionTest.cs System.Data.Odbc/OdbcParameterTest.cs System.Data.Odbc/OdbcPermissionAttributeTest.cs System.Data.Odbc/OdbcPermissionTest.cs -System.Data.OleDb/OleDbCommandTest.cs -System.Data.OleDb/OleDbConnectionTest.cs -System.Data.OleDb/OleDbDataAdapterTest.cs -System.Data.OleDb/OleDbMetaDataCollectionNamesTest.cs -System.Data.OleDb/OleDbParameterCollectionTest.cs -System.Data.OleDb/OleDbPermissionAttributeTest.cs -System.Data.OleDb/OleDbPermissionTest.cs + +#OLEDB +#System.Data.OleDb/OleDbCommandTest.cs +#System.Data.OleDb/OleDbConnectionTest.cs +#System.Data.OleDb/OleDbDataAdapterTest.cs +#System.Data.OleDb/OleDbMetaDataCollectionNamesTest.cs +#System.Data.OleDb/OleDbParameterCollectionTest.cs +#System.Data.OleDb/OleDbPermissionAttributeTest.cs +#System.Data.OleDb/OleDbPermissionTest.cs + System.Data.Sql/SqlNotificationRequestTest.cs System.Data.SqlClient/SqlCommandBuilderTest.cs System.Data.SqlClient/SqlCommandTest.cs diff --git a/mcs/class/System.Data/System.Data_xtest.dll.sources b/mcs/class/System.Data/System.Data_xtest.dll.sources new file mode 100644 index 00000000000..d1f724d8534 --- /dev/null +++ b/mcs/class/System.Data/System.Data_xtest.dll.sources @@ -0,0 +1,145 @@ +../../../external/corefx/src/System.Data.Common/tests/System/Data/ConstraintCollectionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/ConstraintCollectionTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/ConstraintExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/ConstraintTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataColumnCollectionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataColumnCollectionTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataColumnTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataColumnTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRelationCollectionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRelationCollectionTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRelationTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRelationTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRowCollectionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRowCollectionTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRowTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRowTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRowViewTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataRowViewTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataSet1.Designer.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataSetAssertion.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataSetInferXmlSchemaTest.cs +#../../../external/corefx/src/System.Data.Common/tests/System/Data/DataSetReadXmlSchemaTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataSetReadXmlTest.cs +#../../../external/corefx/src/System.Data.Common/tests/System/Data/DataSetTest.cs +#../../../external/corefx/src/System.Data.Common/tests/System/Data/DataSetTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataSetTypedDataSetTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableCollectionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableCollectionTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableLoadRowTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableReaderTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableReadWriteXmlTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableReadXmlSchemaTest.cs +#../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableTest3.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableTest4.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataTableTest5.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataViewManagerTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataViewTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataViewTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataViewTest_IBindingList.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DataViewTest_IBindingListView.cs +#../../../external/corefx/src/System.Data.Common/tests/System/Data/DBConcurrencyExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DeletedRowInaccessibleExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/DuplicateNameExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/EvaluateExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/ForeignKeyConstraintTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/ForeignKeyConstraintTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/InRowChangingEventExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/InvalidConstraintExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/MissingPrimaryKeyExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/MonkeyDataSet.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/NoNullAllowedExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/ReadOnlyExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/RowNotInTableExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/SyntaxErrorExceptionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/TrailingSpaceTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/UniqueConstraintTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/UniqueConstraintTest2.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/VersionNotFoundException.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/XmlDataLoaderTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/XmlDataReaderTest.cs + +#../../../external/corefx/src/System.Data.Common/tests/System/Data/SqlTypes/*.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DataAdapterTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DataColumnMappingCollectionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DataTableMappingCollectionTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DbCommandBuilderTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DbConnectionStringBuilderTest.cs + +# WaitForPendingFinalizers issue?: +#../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs +#../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DbCommandTests.cs + +../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DbDataAdapterTest.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DbDataReaderMock.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DbExceptionTests.cs +../../../external/corefx/src/System.Data.Common/tests/System/Data/Common/DbTransactionTest.cs +../../../external/corefx/src/Common/tests/System/Runtime/Serialization/Formatters/BinaryFormatterHelpers.cs +../../../external/corefx/src/Common/tests/System/Diagnostics/Tracing/TestEventListener.cs +../../../external/corefx/src/System.Data.Common/tests/DataProvider.cs +../../../external/corefx/src/CoreFx.Private.TestUtilities/src/System/AssertExtensions.cs + +# TDS: +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/AllHeaders/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/ColInfo/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/ColMetadata/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/Done/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/EnvChange/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/Error/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/FeatureExtAck/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/FedAuthInfo/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/FedAuthMessage/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/Info/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/Login7/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/LoginAck/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/Order/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/PreLogin/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/ReturnStatus/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/Row/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/SessionState/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/SQLBatch/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/SSPI/*.cs + +# TDS.EndPoint: +../../../external/corefx/src/Common/src/Interop/Windows/Interop.Libraries.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/FederatedAuthentication/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecBuffer.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecBufferDesc.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecBufferDescType.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecBufferType.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecConstants.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecContextRequirements.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecDataRepresentation.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecPgkCredentials.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecPkgInfo.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecResult.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecurityHandle.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecurityInteger.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SecurityWrapper.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SSPIContext.Unix.cs +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.EndPoint/SSPI/SSPIResponse.cs + +# TDS.Servers: +../../../external/corefx/src/System.Data.SqlClient/tests/Tools/TDS/TDS.Servers/*.cs + + +# System.Data.SqlClient.FunctionalTests +../../../external/corefx/src/System.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs +../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/BaseProviderAsyncTest/*.cs +../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/CloneTests.cs +# TODO: fix these tests (wrong type of exception is thrown on windows): +#../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/ExceptionTest.cs +../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/SqlBulkCopyColumnMappingCollectionTest.cs +../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/SqlClientFactoryTest.cs +../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/SqlConnectionTest.RetrieveStatistics.cs +../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/SqlDataRecordTest.cs +# TODO: fix CopyTo: +#../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/SqlErrorCollectionTest.cs +# TODO: fix ParameterPrecisionOnInterfaceType +#../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/SqlParameterTest.cs +../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/TcpDefaultForAzureTest.cs +../../../external/corefx/src/System.Data.SqlClient/tests/FunctionalTests/TestTdsServer.cs diff --git a/mcs/class/System.Data/Test/ProviderTests/Common/ConnectionManager.cs b/mcs/class/System.Data/Test/ProviderTests/Common/ConnectionManager.cs index 036ecc16d0d..f0613feecc5 100644 --- a/mcs/class/System.Data/Test/ProviderTests/Common/ConnectionManager.cs +++ b/mcs/class/System.Data/Test/ProviderTests/Common/ConnectionManager.cs @@ -48,13 +48,13 @@ namespace MonoTests.System.Data.Connected private static ConnectionManager instance; private ConnectionHolder sql; - private const string OdbcEnvVar = "SYSTEM_DATA_ODBC_V2"; - private const string SqlEnvVar = "SYSTEM_DATA_MSSQL_V2"; + private const string OdbcEnvVar = "SYSTEM_DATA_ODBC_V3"; + private const string SqlEnvVar = "SYSTEM_DATA_MSSQL_V3"; private ConnectionManager () { //Environment.SetEnvironmentVariable(OdbcEnvVar, @"Driver={MySQL ODBC 5.3 Unicode Driver};server=127.0.0.1;uid=sa;pwd=qwerty123;"); - //Environment.SetEnvironmentVariable(SqlEnvVar, @"server=127.0.0.1;database=master;user id=sa;password=qwerty123"); + //Environment.SetEnvironmentVariable(SqlEnvVar, @"Server=.\SQLEXPRESS;Database=master;User Id=sa;Password=qwerty123;"); // Generate a random db name DatabaseName = "monotest" + Guid.NewGuid().ToString().Substring(0, 7); @@ -102,9 +102,12 @@ namespace MonoTests.System.Data.Connected string connectionString = Environment.GetEnvironmentVariable (envVarName); if (string.IsNullOrEmpty (connectionString)) return null; - +#if MOBILE + connection = new OdbcConnection (); +#else DbProviderFactory factory = DbProviderFactories.GetFactory ("System.Data.Odbc"); var connection = (OdbcConnection)factory.CreateConnection (); +#endif var engine = new EngineConfig { Type = EngineType.MySQL, @@ -171,8 +174,7 @@ namespace MonoTests.System.Data.Connected // Split SQL script by "GO" statements private static IEnumerable SplitSqlStatements(string sqlScript) { - var statements = Regex.Split(sqlScript, - $@"^[\t ]*GO[\t ]*\d*[\t ]*(?:--.*)?$", + var statements = Regex.Split(sqlScript, @"^\s*GO.*$", RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace | RegexOptions.IgnoreCase); return statements.Where(x => !string.IsNullOrWhiteSpace(x)).Select(x => x.Trim(' ', '\r', '\n')); } @@ -247,6 +249,8 @@ namespace MonoTests.System.Data.Connected EngineConfig = engineConfig; this.connection = connection; ConnectionString = connectionString; + if (!ConnectionString.EndsWith(";")) + ConnectionString += ";"; } public bool IsAzure => ConnectionString.ToLower().Contains("database.windows.net"); diff --git a/mcs/class/System.Data/Test/ProviderTests/System.Data.Odbc/OdbcCommandBuilderTest.cs b/mcs/class/System.Data/Test/ProviderTests/System.Data.Odbc/OdbcCommandBuilderTest.cs index 4583ca8fe1d..b87935007ab 100644 --- a/mcs/class/System.Data/Test/ProviderTests/System.Data.Odbc/OdbcCommandBuilderTest.cs +++ b/mcs/class/System.Data/Test/ProviderTests/System.Data.Odbc/OdbcCommandBuilderTest.cs @@ -75,20 +75,20 @@ namespace MonoTests.System.Data.Connected.Odbc AssertInsertParameters (cmd, "#B3:"); cb = new OdbcCommandBuilder (da); - cb.QuoteSuffix = "´"; + cb.QuoteSuffix = "´"; cmd = cb.GetInsertCommand (); - Assert.AreEqual ("INSERT INTO employee´ (id´, lname´) VALUES (?, ?)", + Assert.AreEqual ("INSERT INTO employee´ (id´, lname´) VALUES (?, ?)", cmd.CommandText, "#C1"); Assert.AreSame (conn, cmd.Connection, "#C2"); AssertInsertParameters (cmd, "#C3:"); cb = new OdbcCommandBuilder (da); cb.QuotePrefix = "\""; - cb.QuoteSuffix = "´"; + cb.QuoteSuffix = "´"; cmd = cb.GetInsertCommand (); - Assert.AreEqual ("INSERT INTO \"employee´ (\"id´, \"lname´) VALUES (?, ?)", + Assert.AreEqual ("INSERT INTO \"employee´ (\"id´, \"lname´) VALUES (?, ?)", cmd.CommandText, "#D1"); Assert.AreSame (conn, cmd.Connection, "#D2"); AssertInsertParameters (cmd, "#D3:"); @@ -158,20 +158,20 @@ namespace MonoTests.System.Data.Connected.Odbc AssertUpdateParameters (cmd, "#B3:"); cb = new OdbcCommandBuilder (da); - cb.QuoteSuffix = "´"; + cb.QuoteSuffix = "´"; cmd = cb.GetUpdateCommand (); - Assert.AreEqual ("UPDATE employee´ SET id´ = ?, lname´ = ? WHERE ((id´ = ?) AND ((? = 1 AND lname´ IS NULL) OR (lname´ = ?)))", + Assert.AreEqual ("UPDATE employee´ SET id´ = ?, lname´ = ? WHERE ((id´ = ?) AND ((? = 1 AND lname´ IS NULL) OR (lname´ = ?)))", cmd.CommandText, "#C1"); Assert.AreSame (conn, cmd.Connection, "#C2"); AssertUpdateParameters (cmd, "#C3:"); cb = new OdbcCommandBuilder (da); cb.QuotePrefix = "\""; - cb.QuoteSuffix = "´"; + cb.QuoteSuffix = "´"; cmd = cb.GetUpdateCommand (); - Assert.AreEqual ("UPDATE \"employee´ SET \"id´ = ?, \"lname´ = ? WHERE ((\"id´ = ?) AND ((? = 1 AND \"lname´ IS NULL) OR (\"lname´ = ?)))", + Assert.AreEqual ("UPDATE \"employee´ SET \"id´ = ?, \"lname´ = ? WHERE ((\"id´ = ?) AND ((? = 1 AND \"lname´ IS NULL) OR (\"lname´ = ?)))", cmd.CommandText, "#D1"); Assert.AreSame (conn, cmd.Connection, "#D2"); AssertUpdateParameters (cmd, "#D3:"); @@ -385,20 +385,20 @@ namespace MonoTests.System.Data.Connected.Odbc AssertDeleteParameters (cmd, "#B3:"); cb = new OdbcCommandBuilder (da); - cb.QuoteSuffix = "´"; + cb.QuoteSuffix = "´"; cmd = cb.GetDeleteCommand (); - Assert.AreEqual ("DELETE FROM employee´ WHERE ((id´ = ?) AND ((? = 1 AND lname´ IS NULL) OR (lname´ = ?)))", + Assert.AreEqual ("DELETE FROM employee´ WHERE ((id´ = ?) AND ((? = 1 AND lname´ IS NULL) OR (lname´ = ?)))", cmd.CommandText, "#C1"); Assert.AreSame (conn, cmd.Connection, "#C2"); AssertDeleteParameters (cmd, "#C3:"); cb = new OdbcCommandBuilder (da); cb.QuotePrefix = "\""; - cb.QuoteSuffix = "´"; + cb.QuoteSuffix = "´"; cmd = cb.GetDeleteCommand (); - Assert.AreEqual ("DELETE FROM \"employee´ WHERE ((\"id´ = ?) AND ((? = 1 AND \"lname´ IS NULL) OR (\"lname´ = ?)))", + Assert.AreEqual ("DELETE FROM \"employee´ WHERE ((\"id´ = ?) AND ((? = 1 AND \"lname´ IS NULL) OR (\"lname´ = ?)))", cmd.CommandText, "#D1"); Assert.AreSame (conn, cmd.Connection, "#D2"); AssertDeleteParameters (cmd, "#D3:"); @@ -638,6 +638,7 @@ namespace MonoTests.System.Data.Connected.Odbc } [Test] // QuoteIdentifier (String, OdbcConnection) + [Category("NotWorking")] //needs https://github.com/dotnet/corefx/pull/22499 public void QuoteIdentifier2 () { OdbcCommandBuilder cb; diff --git a/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs b/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs index ff8f74c4828..aba2dc7cae6 100644 --- a/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs +++ b/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs @@ -97,7 +97,8 @@ namespace MonoTests.System.Data.Connected.SqlClient Assert.IsNull (cmd.Container, "#A5"); Assert.IsTrue (cmd.DesignTimeVisible, "#A6"); Assert.IsNull (cmd.Notification, "#A7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#A8"); + //needs SqlDependency impl in corefx: + //Assert.IsTrue (cmd.NotificationAutoEnlist, "#A8"); Assert.IsNotNull (cmd.Parameters, "#A9"); Assert.AreEqual (0, cmd.Parameters.Count, "#A10"); Assert.IsNull (cmd.Site, "#A11"); @@ -127,7 +128,8 @@ namespace MonoTests.System.Data.Connected.SqlClient Assert.IsNull (cmd.Container, "#B5"); Assert.IsTrue (cmd.DesignTimeVisible, "#B6"); Assert.IsNull (cmd.Notification, "#B7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#B8"); + //needs SqlDependency impl in corefx: + //Assert.IsTrue (cmd.NotificationAutoEnlist, "#B8"); Assert.IsNotNull (cmd.Parameters, "#B9"); Assert.AreEqual (0, cmd.Parameters.Count, "#B10"); Assert.IsNull (cmd.Site, "#B11"); @@ -2453,6 +2455,7 @@ namespace MonoTests.System.Data.Connected.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 public void NotificationAutoEnlistTest () { cmd = new SqlCommand (); @@ -2462,6 +2465,7 @@ namespace MonoTests.System.Data.Connected.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22876 public void BeginExecuteXmlReaderTest () { cmd = new SqlCommand (); @@ -2474,7 +2478,8 @@ namespace MonoTests.System.Data.Connected.SqlClient cmd.Connection = conn1; IAsyncResult result = cmd.BeginExecuteXmlReader (); - XmlReader reader = cmd.EndExecuteXmlReader (result); + //EndExecuteXmlReader is private in corefx https://github.com/dotnet/corefx/issues/22876 + XmlReader reader = null;// cmd.EndExecuteXmlReader (result); while (reader.Read ()) { if (reader.LocalName.ToString () == "employee") Assert.AreEqual ("kumar", reader["lname"], "#1 "); @@ -2483,29 +2488,6 @@ namespace MonoTests.System.Data.Connected.SqlClient ConnectionManager.Instance.Sql.CloseConnection (); } } - - [Test] - [Ignore("MS .NET doesn't throw IOE here. TODO: check corefx")] - public void BeginExecuteXmlReaderExceptionTest () - { - cmd = new SqlCommand (); - try { - SqlConnection conn = new SqlConnection (connectionString); - conn.Open (); - cmd.CommandText = "Select lname from employee where id<2 FOR XML AUTO, XMLDATA"; - cmd.Connection = conn; - - try { - /*IAsyncResult result = */cmd.BeginExecuteXmlReader (); - } catch (InvalidOperationException) { - Assert.AreEqual (ConnectionManager.Instance.Sql.ConnectionString, connectionString, "#1 Connection string has changed"); - return; - } - Assert.Fail ("Expected Exception InvalidOperationException not thrown"); - } finally { - ConnectionManager.Instance.Sql.CloseConnection (); - } - } [Test] public void SqlCommandDisposeTest () diff --git a/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs b/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs index 82df6f15294..feab760efbd 100644 --- a/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs +++ b/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs @@ -64,6 +64,7 @@ namespace MonoTests.System.Data.Connected.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 public void PropertiesTest () { builder = new SqlConnectionStringBuilder ("SERVER=localhost;"); @@ -75,6 +76,7 @@ namespace MonoTests.System.Data.Connected.SqlClient } [Test] + [Category("NotWorking")] //https://github.com/dotnet/corefx/issues/22474 public void ItemTest () { builder = new SqlConnectionStringBuilder ("SERVER=localhost;"); @@ -102,6 +104,7 @@ namespace MonoTests.System.Data.Connected.SqlClient } [Test, ExpectedException (typeof (ArgumentException))] + [Category("NotWorking")] //https://github.com/dotnet/corefx/issues/22474 public void InvalidKeyTest () { builder = new SqlConnectionStringBuilder ("SERVER=localhost;Network=DBMSSOCN"); @@ -110,6 +113,7 @@ namespace MonoTests.System.Data.Connected.SqlClient } [Test] + [Category("NotWorking")] //https://github.com/dotnet/corefx/issues/22474 public void RemoveTest () { builder = new SqlConnectionStringBuilder ("SERVER = localhost ;Network=DBMSSOCN"); @@ -161,6 +165,7 @@ namespace MonoTests.System.Data.Connected.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 public void ContextConnectionTest () { builder = new SqlConnectionStringBuilder (); @@ -171,6 +176,7 @@ namespace MonoTests.System.Data.Connected.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 public void SettingContextConnectionTest () { builder = new SqlConnectionStringBuilder (); diff --git a/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlConnectionTest.cs b/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlConnectionTest.cs index 0e060e9f857..5d1ea8568d9 100644 --- a/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlConnectionTest.cs +++ b/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlConnectionTest.cs @@ -162,10 +162,10 @@ namespace MonoTests.System.Data.Connected.SqlClient // Cannot open database "invalidDB" requested // by the login. The login failed Assert.AreEqual (typeof (SqlException), ex.GetType (), "#2"); - Assert.AreEqual ((byte) 14, ex.Class, "#3"); + Assert.AreEqual ((byte) 11, ex.Class, "#3"); Assert.IsNull (ex.InnerException, "#4"); Assert.IsNotNull (ex.Message, "#5"); - Assert.AreEqual (18456, ex.Number, "#7"); + Assert.AreEqual (4060, ex.Number, "#7"); Assert.AreEqual ((byte) 1, ex.State, "#8"); } finally { conn.Close (); @@ -629,7 +629,6 @@ namespace MonoTests.System.Data.Connected.SqlClient Assert.AreEqual ("", conn.Database, "#C2"); Assert.AreEqual (8000, conn.PacketSize, "#C3"); Assert.AreEqual (15, conn.ConnectionTimeout, "#C4"); - Assert.IsTrue (string.Compare (conn.WorkstationId, Environment.MachineName, true) == 0, "#C5"); } [Test] @@ -722,6 +721,17 @@ namespace MonoTests.System.Data.Connected.SqlClient conn.Close (); } + [Test] + [Category("NotWorking")] //https://github.com/dotnet/corefx/issues/22871 + public void WorkstationId() + { + var connection1 = new SqlConnection (connectionString + ";Workstation Id=Desktop"); + var connection2 = new SqlConnection (connectionString); + connection1.Dispose(); + Assert.AreEqual (Environment.MachineName, connection1.WorkstationId); + Assert.AreEqual (Environment.MachineName, connection2.WorkstationId); + } + [Test] // bug #412571 public void Dispose () { @@ -740,7 +750,6 @@ namespace MonoTests.System.Data.Connected.SqlClient Assert.AreEqual (string.Empty, conn.DataSource, "#A5"); Assert.AreEqual (8000, conn.PacketSize, "#A6"); Assert.AreEqual (ConnectionState.Closed, conn.State, "#A7"); - Assert.IsTrue (string.Compare (conn.WorkstationId, Environment.MachineName, true) == 0, "#A8"); Assert.AreEqual (2, events.Count, "#A9"); stateChangeArgs = events [0] as StateChangeEventArgs; diff --git a/mcs/class/System.Data/Test/System.Data.Odbc/OdbcCommandBuilderTest.cs b/mcs/class/System.Data/Test/System.Data.Odbc/OdbcCommandBuilderTest.cs index 9e03b6c4242..3e278502b87 100644 --- a/mcs/class/System.Data/Test/System.Data.Odbc/OdbcCommandBuilderTest.cs +++ b/mcs/class/System.Data/Test/System.Data.Odbc/OdbcCommandBuilderTest.cs @@ -38,6 +38,7 @@ using NUnit.Framework; namespace MonoTests.System.Data.Odbc { [TestFixture] + [Category("NotWorking")] // needs https://github.com/dotnet/corefx/pull/22499 public class OdbcCommandBuilderTest { [Test] diff --git a/mcs/class/System.Data/Test/System.Data.Odbc/OdbcConnectionTest.cs b/mcs/class/System.Data/Test/System.Data.Odbc/OdbcConnectionTest.cs index 7c353bc2ec6..94b894a056b 100644 --- a/mcs/class/System.Data/Test/System.Data.Odbc/OdbcConnectionTest.cs +++ b/mcs/class/System.Data/Test/System.Data.Odbc/OdbcConnectionTest.cs @@ -131,6 +131,7 @@ namespace MonoTests.System.Data.Odbc } [Test] + [Category("NotWorking")] //GetSchema is not implemented in corefx for ODBC public void GetSchema_Connection_Closed () { OdbcConnection cn = new OdbcConnection (); diff --git a/mcs/class/System.Data/Test/System.Data.Odbc/OdbcDataAdapterTest.cs b/mcs/class/System.Data/Test/System.Data.Odbc/OdbcDataAdapterTest.cs index e06add56875..efb87cd1b5d 100644 --- a/mcs/class/System.Data/Test/System.Data.Odbc/OdbcDataAdapterTest.cs +++ b/mcs/class/System.Data/Test/System.Data.Odbc/OdbcDataAdapterTest.cs @@ -31,9 +31,8 @@ using System; using System.Data; using System.Data.Odbc; -using System.Data.OleDb; - using NUnit.Framework; +using SqlCommand = System.Data.SqlClient.SqlCommand; namespace MonoTests.System.Data.Odbc { @@ -307,7 +306,7 @@ namespace MonoTests.System.Data.Odbc Assert.IsNull (da.DeleteCommand, "#A3"); try { - da.DeleteCommand = new OleDbCommand (); + da.DeleteCommand = new SqlCommand (); Assert.Fail ("#B1"); } catch (InvalidCastException ex) { Assert.AreEqual (typeof (InvalidCastException), ex.GetType (), "#B2"); @@ -364,7 +363,7 @@ namespace MonoTests.System.Data.Odbc Assert.IsNull (da.InsertCommand, "#A3"); try { - da.InsertCommand = new OleDbCommand (); + da.InsertCommand = new SqlCommand (); Assert.Fail ("#B1"); } catch (InvalidCastException ex) { Assert.AreEqual (typeof (InvalidCastException), ex.GetType (), "#B2"); @@ -403,7 +402,7 @@ namespace MonoTests.System.Data.Odbc Assert.IsNull (da.SelectCommand, "#A3"); try { - da.SelectCommand = new OleDbCommand (); + da.SelectCommand = new SqlCommand (); Assert.Fail ("#B1"); } catch (InvalidCastException ex) { Assert.AreEqual (typeof (InvalidCastException), ex.GetType (), "#B2"); @@ -480,7 +479,7 @@ namespace MonoTests.System.Data.Odbc Assert.IsNull (da.UpdateCommand, "#A3"); try { - da.UpdateCommand = new OleDbCommand (); + da.UpdateCommand = new SqlCommand (); Assert.Fail ("#B1"); } catch (InvalidCastException ex) { Assert.AreEqual (typeof (InvalidCastException), ex.GetType (), "#B2"); diff --git a/mcs/class/System.Data/Test/System.Data.Sql/SqlNotificationRequestTest.cs b/mcs/class/System.Data/Test/System.Data.Sql/SqlNotificationRequestTest.cs index 93c673ba1d0..ae2fd882f63 100644 --- a/mcs/class/System.Data/Test/System.Data.Sql/SqlNotificationRequestTest.cs +++ b/mcs/class/System.Data/Test/System.Data.Sql/SqlNotificationRequestTest.cs @@ -94,7 +94,7 @@ namespace MonoTests.System.Data.Sql Assert.AreEqual (typeof (ArgumentOutOfRangeException), ex.GetType (), "#2"); Assert.IsNull (ex.InnerException, "#3"); Assert.IsNotNull (ex.Message, "#4"); - Assert.AreEqual ("Service", ex.ParamName, "#5"); + Assert.AreEqual ("Options", ex.ParamName, "#5"); } } @@ -156,7 +156,7 @@ namespace MonoTests.System.Data.Sql Assert.AreEqual (typeof (ArgumentOutOfRangeException), ex.GetType (), "#2"); Assert.IsNull (ex.InnerException, "#3"); Assert.IsNotNull (ex.Message, "#4"); - Assert.AreEqual ("Service", ex.ParamName, "#5"); + Assert.AreEqual ("Options", ex.ParamName, "#5"); } } diff --git a/mcs/class/System.Data/Test/System.Data.SqlClient/SqlCommandTest.cs b/mcs/class/System.Data/Test/System.Data.SqlClient/SqlCommandTest.cs index be36ba383c1..d6048542398 100644 --- a/mcs/class/System.Data/Test/System.Data.SqlClient/SqlCommandTest.cs +++ b/mcs/class/System.Data/Test/System.Data.SqlClient/SqlCommandTest.cs @@ -55,7 +55,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#5"); Assert.IsTrue (cmd.DesignTimeVisible, "#6"); Assert.IsNull (cmd.Notification, "#7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#8"); + // Not implemented in corefx: + //Assert.IsTrue (cmd.NotificationAutoEnlist, "#8"); Assert.IsNotNull (cmd.Parameters, "#9"); Assert.AreEqual (0, cmd.Parameters.Count, "#10"); Assert.IsNull (cmd.Site, "#11"); @@ -77,7 +78,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#A5"); Assert.IsTrue (cmd.DesignTimeVisible, "#A6"); Assert.IsNull (cmd.Notification, "#A7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#A8"); + // Not implemented in corefx: + // Assert.IsTrue (cmd.NotificationAutoEnlist, "#A8"); Assert.IsNotNull (cmd.Parameters, "#A9"); Assert.AreEqual (0, cmd.Parameters.Count, "#A10"); Assert.IsNull (cmd.Site, "#A11"); @@ -92,7 +94,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#B5"); Assert.IsTrue (cmd.DesignTimeVisible, "#B6"); Assert.IsNull (cmd.Notification, "#B7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#B8"); + // Not implemented in corefx: + // Assert.IsTrue (cmd.NotificationAutoEnlist, "#B8"); Assert.IsNotNull (cmd.Parameters, "#B9"); Assert.AreEqual (0, cmd.Parameters.Count, "#B10"); Assert.IsNull (cmd.Site, "#B11"); @@ -117,7 +120,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#A5"); Assert.IsTrue (cmd.DesignTimeVisible, "#A6"); Assert.IsNull (cmd.Notification, "#A7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#A8"); + // Not implemented in corefx: + // Assert.IsTrue (cmd.NotificationAutoEnlist, "#A8"); Assert.IsNotNull (cmd.Parameters, "#A9"); Assert.AreEqual (0, cmd.Parameters.Count, "#A10"); Assert.IsNull (cmd.Site, "#A11"); @@ -132,7 +136,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#B5"); Assert.IsTrue (cmd.DesignTimeVisible, "#B6"); Assert.IsNull (cmd.Notification, "#B7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#B8"); + // Not implemented in corefx: + //Assert.IsTrue (cmd.NotificationAutoEnlist, "#B8"); Assert.IsNotNull (cmd.Parameters, "#B9"); Assert.AreEqual (0, cmd.Parameters.Count, "#B10"); Assert.IsNull (cmd.Site, "#B11"); @@ -147,7 +152,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#C5"); Assert.IsTrue (cmd.DesignTimeVisible, "#C6"); Assert.IsNull (cmd.Notification, "#C7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#C8"); + // Not implemented in corefx: + //Assert.IsTrue (cmd.NotificationAutoEnlist, "#C8"); Assert.IsNotNull (cmd.Parameters, "#C9"); Assert.AreEqual (0, cmd.Parameters.Count, "#C10"); Assert.IsNull (cmd.Site, "#C11"); @@ -172,7 +178,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#A5"); Assert.IsTrue (cmd.DesignTimeVisible, "#A6"); Assert.IsNull (cmd.Notification, "#A7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#A8"); + // Not implemented in corefx: + // Assert.IsTrue (cmd.NotificationAutoEnlist, "#A8"); Assert.IsNotNull (cmd.Parameters, "#A9"); Assert.AreEqual (0, cmd.Parameters.Count, "#A10"); Assert.IsNull (cmd.Site, "#A11"); @@ -187,7 +194,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#B5"); Assert.IsTrue (cmd.DesignTimeVisible, "#B6"); Assert.IsNull (cmd.Notification, "#B7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#B8"); + // Not implemented in corefx: + // Assert.IsTrue (cmd.NotificationAutoEnlist, "#B8"); Assert.IsNotNull (cmd.Parameters, "#B9"); Assert.AreEqual (0, cmd.Parameters.Count, "#B10"); Assert.IsNull (cmd.Site, "#B11"); @@ -202,7 +210,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#C5"); Assert.IsTrue (cmd.DesignTimeVisible, "#C6"); Assert.IsNull (cmd.Notification, "#C7"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#C8"); + // Not implemented in corefx: + // Assert.IsTrue (cmd.NotificationAutoEnlist, "#C8"); Assert.IsNotNull (cmd.Parameters, "#C9"); Assert.AreEqual (0, cmd.Parameters.Count, "#C10"); Assert.IsNull (cmd.Site, "#C11"); @@ -224,7 +233,8 @@ namespace MonoTests.System.Data.SqlClient cmd.CommandType = CommandType.StoredProcedure; cmd.DesignTimeVisible = false; cmd.Notification = notificationReq; - cmd.NotificationAutoEnlist = false; + // not implemented in corefx + //cmd.NotificationAutoEnlist = false; cmd.Parameters.Add ("@TestPar1", SqlDbType.Int); cmd.Parameters ["@TestPar1"].Value = DBNull.Value; cmd.Parameters.AddWithValue ("@BirthDate", DateTime.Now); @@ -237,7 +247,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Connection, "#4"); Assert.IsFalse (cmd.DesignTimeVisible, "#5"); Assert.AreSame (notificationReq, cmd.Notification, "#6"); - Assert.IsFalse (cmd.NotificationAutoEnlist, "#7"); + // not implemented in corefx + //Assert.IsFalse (cmd.NotificationAutoEnlist, "#7"); Assert.AreEqual (2, clone.Parameters.Count, "#8"); Assert.AreEqual (100, clone.CommandTimeout, "#9"); clone.Parameters.AddWithValue ("@test", DateTime.Now); @@ -480,50 +491,13 @@ namespace MonoTests.System.Data.SqlClient { SqlCommand cmd; - // Text, without parameters - cmd = new SqlCommand ("select count(*) from whatever"); - try { - cmd.Prepare (); - Assert.Fail ("#A1"); - } catch (NullReferenceException) { - } - // Text, with parameters cmd = new SqlCommand ("select count(*) from whatever"); cmd.Parameters.Add ("@TestPar1", SqlDbType.Int); try { cmd.Prepare (); Assert.Fail ("#B1"); - } catch (NullReferenceException) { - } - - // Text, without parameters - cmd = new SqlCommand ("select count(*) from whatever"); - cmd.Parameters.Add ("@TestPar1", SqlDbType.Int); - cmd.Parameters.Clear (); - try { - cmd.Prepare (); - Assert.Fail ("#C1"); - } catch (NullReferenceException) { - } - - // StoredProcedure, without parameters - cmd = new SqlCommand ("FindCustomer"); - cmd.CommandType = CommandType.StoredProcedure; - try { - cmd.Prepare (); - Assert.Fail ("#D1"); - } catch (NullReferenceException) { - } - - // StoredProcedure, with parameters - cmd = new SqlCommand ("FindCustomer"); - cmd.CommandType = CommandType.StoredProcedure; - cmd.Parameters.Add ("@TestPar1", SqlDbType.Int); - try { - cmd.Prepare (); - Assert.Fail ("#E1"); - } catch (NullReferenceException) { + } catch (InvalidOperationException) { } } diff --git a/mcs/class/System.Data/Test/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs b/mcs/class/System.Data/Test/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs index 59845d17e8a..534cea5fcf9 100644 --- a/mcs/class/System.Data/Test/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs +++ b/mcs/class/System.Data/Test/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs @@ -64,6 +64,7 @@ namespace MonoTests.System.Data.Common } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 public void PropertiesTest () { builder = new SqlConnectionStringBuilder ("SERVER=localhost;"); @@ -75,6 +76,7 @@ namespace MonoTests.System.Data.Common } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 public void ItemTest () { builder = new SqlConnectionStringBuilder ("SERVER=localhost;"); @@ -102,6 +104,7 @@ namespace MonoTests.System.Data.Common } [Test, ExpectedException (typeof (ArgumentException))] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 public void InvalidKeyTest () { builder = new SqlConnectionStringBuilder ("SERVER=localhost;Network=DBMSSOCN"); @@ -110,6 +113,7 @@ namespace MonoTests.System.Data.Common } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 public void RemoveTest () { builder = new SqlConnectionStringBuilder ("SERVER = localhost ;Network=DBMSSOCN"); diff --git a/mcs/class/System.Data/Test/System.Data.SqlClient/SqlConnectionTest.cs b/mcs/class/System.Data/Test/System.Data.SqlClient/SqlConnectionTest.cs index 9511be24f75..459b86dc0bd 100644 --- a/mcs/class/System.Data/Test/System.Data.SqlClient/SqlConnectionTest.cs +++ b/mcs/class/System.Data/Test/System.Data.SqlClient/SqlConnectionTest.cs @@ -56,7 +56,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cn.Site, "#8"); Assert.AreEqual (ConnectionState.Closed, cn.State, "#9"); Assert.IsFalse (cn.StatisticsEnabled, "#10"); - Assert.IsTrue (string.Compare (Environment.MachineName, cn.WorkstationId, true) == 0, "#11"); + // https://github.com/dotnet/corefx/issues/22871 + //Assert.IsTrue (string.Compare (Environment.MachineName, cn.WorkstationId, true) == 0, "#11"); } [Test] // SqlConnection (string) @@ -78,7 +79,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cn.Site, "#A8"); Assert.AreEqual (ConnectionState.Closed, cn.State, "#A9"); Assert.IsFalse (cn.StatisticsEnabled, "#A10"); - Assert.IsTrue (string.Compare (Environment.MachineName, cn.WorkstationId, true) == 0, "#A11"); + // https://github.com/dotnet/corefx/issues/22871 + //Assert.IsTrue (string.Compare (Environment.MachineName, cn.WorkstationId, true) == 0, "#A11"); cn = new SqlConnection ((string) null); Assert.AreEqual (string.Empty, cn.ConnectionString, "#B1"); @@ -91,7 +93,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cn.Site, "#B8"); Assert.AreEqual (ConnectionState.Closed, cn.State, "#B9"); Assert.IsFalse (cn.StatisticsEnabled, "#B10"); - Assert.IsTrue (string.Compare (Environment.MachineName, cn.WorkstationId, true) == 0, "#B11"); + // https://github.com/dotnet/corefx/issues/22871 + //Assert.IsTrue (string.Compare (Environment.MachineName, cn.WorkstationId, true) == 0, "#B11"); } [Test] @@ -279,6 +282,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/11958 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif @@ -297,6 +301,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/11958 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif @@ -333,6 +338,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/11958 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif @@ -355,6 +361,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/11958 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif @@ -457,7 +464,8 @@ namespace MonoTests.System.Data.SqlClient Assert.IsNull (cmd.Container, "#6"); Assert.IsTrue (cmd.DesignTimeVisible, "#7"); Assert.IsNull (cmd.Notification, "#8"); - Assert.IsTrue (cmd.NotificationAutoEnlist, "#9"); + // not implemented in corefx yet + // Assert.IsTrue (cmd.NotificationAutoEnlist, "#9"); Assert.IsNotNull (cmd.Parameters, "#10"); Assert.AreEqual (0, cmd.Parameters.Count, "#11"); Assert.IsNull (cmd.Site, "#12"); @@ -479,7 +487,8 @@ namespace MonoTests.System.Data.SqlClient Assert.AreEqual (string.Empty, cn.Database, "#3"); Assert.AreEqual (string.Empty, cn.DataSource, "#4"); Assert.AreEqual (8000, cn.PacketSize, "#5"); - Assert.IsTrue (string.Compare (Environment.MachineName, cn.WorkstationId, true) == 0, "#6"); + // https://github.com/dotnet/corefx/issues/22871 + // Assert.IsTrue (string.Compare (Environment.MachineName, cn.WorkstationId, true) == 0, "#6"); Assert.AreEqual (ConnectionState.Closed, cn.State, "#7"); cn.Dispose (); @@ -488,6 +497,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] //https://github.com/dotnet/corefx/issues/22882 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif @@ -567,6 +577,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif @@ -578,6 +589,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22879 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif @@ -904,6 +916,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif @@ -916,6 +929,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22879 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif @@ -1055,6 +1069,7 @@ namespace MonoTests.System.Data.SqlClient } [Test] + [Category("NotWorking")] // https://github.com/dotnet/corefx/issues/22474 #if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] #endif diff --git a/mcs/class/System.Data/corefx.common.sources b/mcs/class/System.Data/corefx.common.sources index 641c59fb005..850f001e9c5 100644 --- a/mcs/class/System.Data/corefx.common.sources +++ b/mcs/class/System.Data/corefx.common.sources @@ -1,9 +1,97 @@ -../../../external/corefx/src/Common/src/System/Data/Common/DbConnectionPoolKey.cs -../../../external/corefx/src/Common/src/System/Data/Common/MultipartIdentifier.cs -../../../external/corefx/src/Common/src/System/Data/Common/NameValuePair.cs -../../../external/corefx/src/Common/src/System/Data/Common/SQLResource.cs +Assembly/AssemblyInfo.cs +../../build/common/Consts.cs +../../build/common/Locale.cs +../../build/common/MonoTODOAttribute.cs +../../build/common/AssemblyRef.cs +../../build/common/SR.cs +# +# corefx doesn't fully cover our API yet, these files fill the gaps: +# +ReferenceSources/ThisAssembly.cs +System.Data.SqlClient/SqlCredential.cs +System.Data.SqlClient/SQLDebugging.cs +ReferenceSources/PoolBlockingPeriod.cs +corefx/Odbc/AdapterUtil.cs +corefx/Odbc/Res.cs +corefx/DbConnection.cs +corefx/DbConnectionOptions.cs +corefx/DiagnosticListener.cs +corefx/SqlClientFactory.cs +corefx/SqlCommand.cs +corefx/SqlException.cs +corefx/SqlMetaData.cs +corefx/SqlParameter.cs +corefx/SqlConnection.cs +corefx/SqlConnectionStringBuilder.cs +corefx/SqlParameterCollection.cs +corefx/TdsEnums.cs +corefx/SR.cs +corefx/SqlDependencyUtils.cs +../referencesource/System.Data/System/Data/Sql/SqlDataSourceEnumerator.cs +../referencesource/System.Data/System/Data/CodeGen/StrongTypingException.cs +../referencesource/System.Data/System/Data/OleDb/PropertyAttributes.cs +../referencesource/System.Data/System/Data/Common/DBDataPermissionAttribute.cs +../referencesource/System.Data/System/Data/DataSet.cs +../referencesource/System.Data/Microsoft/SqlServer/Server/SqlTriggerContext.cs +../referencesource/System.Data/System/Data/Sql/IBinarySerialize.cs +../referencesource/System.Data/System/Data/Sql/invalidudtexception.cs +../referencesource/System.Data/System/Data/Sql/SqlDataSourceEnumerator.cs +../referencesource/System.Data/System/Data/Sql/SqlFacetAttribute.cs +../referencesource/System.Data/System/Data/Sql/SqlFunctionAttribute.cs +../referencesource/System.Data/System/Data/Sql/SqlGenericUtil.cs +../referencesource/System.Data/System/Data/Sql/SqlMethodAttribute.cs +../referencesource/System.Data/System/Data/Sql/SqlProcedureAttribute.cs +../referencesource/System.Data/System/Data/Sql/SqlTriggerAttribute.cs +../referencesource/System.Data/System/Data/Sql/SqlUserDefinedAggregateAttribute.cs +../referencesource/System.Data/System/Data/Sql/SqlUserDefinedTypeAttribute.cs +../referencesource/System.Data/System/Data/Sql/TriggerAction.cs +../referencesource/System.Data/System/Data/Common/DBDataPermission.cs +../referencesource/System.Data/System/Data/Common/DBDataPermissionAttribute.cs +../referencesource/System.Data/System/Data/SqlClient/SqlClientPermission.cs +../referencesource/System.Data/System/Data/Sql/SqlDataSourceEnumerator.cs +../referencesource/System.Data/System/Data/OleDb/OleDbType.cs + +# +# corefx uses these files but we don't need them: +# +#../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataReaderExtensions.Facade.cs +#../../../external/corefx/src/System.Data.SqlClient/src/System.Data.SqlClient.TypeForwards.cs +#../../../external/corefx/src/System.Data.Common/src/System.Data.Common.TypeForwards.cs +#../../../external/corefx/src/System.Data.SqlClient/src/System/Data/DataException.cs +#../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParser.RegisterEncoding.cs +#../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbConnectionStringCommon.cs +#../../../external/corefx/src/System.Data.Common/src/System/Data/Common/FieldNameLookup.cs +#../../../external/corefx/src/System.Data.SqlClient/src/System/Data/DataException.cs + +# +# System.Data.Common +# +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbConnectionOptions.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbColumn.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/IDbColumnSchemaGenerator.cs ../../../external/corefx/src/System.Data.Common/src/System/HResults.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/TreeIterator.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/XmlBoundElement.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/XmlDataDocument.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/XmlDataImplementation.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/XPathNodePointer.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/BaseTreeIterator.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/DataDocumentXPathNavigator.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/DataPointer.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/DataSetMappper.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/IXmlDataVirtualNode.cs +../../../external/corefx/src/System.Data.Common/src/System/Xml/RegionIterator.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/updatestatus.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/XDRSchema.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/XmlDataLoader.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/XMLDiffLoader.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/XmlKeywords.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/XmlReadMode.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/xmlsaver.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/XMLSchema.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/XmlToDatasetMap.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/XmlWriteMode.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/AcceptRejectRule.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/AggregateType.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/BaseCollection.cs @@ -11,82 +99,6 @@ ../../../external/corefx/src/System.Data.Common/src/System/Data/ColumnTypeConverter.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/CommandBehavior.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/CommandType.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/AdapterSwitches.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/BigIntegerStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/BooleanStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/ByteStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/CharStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataAdapter.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataColumnMapping.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataColumnMappingCollection.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataCommonEventSource.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataRecordInternal.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataTableMapping.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataTableMappingCollection.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DateTimeOffsetStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DateTimeStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbColumn.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbCommand.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DBCommandBuilder.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbConnection.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbConnectionStringBuilder.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataAdapter.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataReader.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataReaderExtensions.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataRecord.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataSourceEnumerator.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbEnumerator.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbException.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbMetaDataCollectionNames.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbMetaDataColumnNames.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbParameter.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbParameterCollection.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbProviderFactory.CreatePermission.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbProviderFactory.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbProviderSpecificTypePropertyAttribute.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DBSchemaRow.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DBSchemaTable.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbTransaction.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DecimalStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DoubleStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/FieldNameLookup.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/Groupbybehavior.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/IDbColumnSchemaGenerator.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/identifiercase.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/Int16Storage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/Int32Storage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/Int64Storage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/ObjectStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/RowUpdatedEventArgs.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/RowUpdatingEventArgs.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SByteStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SchemaTableColumn.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SchemaTableOptionalColumn.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SingleStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLConvert.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLBinaryStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQlBooleanStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLBytesStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLByteStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLCharsStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLDateTimeStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLDecimalStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLDoubleStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLGuidStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLInt16Storage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLInt32Storage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLInt64Storage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLMoneyStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLSingleStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLStringStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SqlUDTStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/StringStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SupportedJoinOperators.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/TimeSpanStorage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/UInt16Storage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/UInt32Storage.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Common/UInt64Storage.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/ConflictOptions.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/ConnectionState.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/Constraint.cs @@ -139,20 +151,6 @@ ../../../external/corefx/src/System.Data.Common/src/System/Data/DefaultValueTypeConverter.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/FillErrorEventArgs.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/FillErrorEventHandler.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/AggregateNode.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/BinaryNode.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/ConstNode.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/DataExpression.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/ExpressionNode.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/ExpressionParser.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/FilterException.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/FunctionNode.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/IFilter.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/LookupNode.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/NameNode.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/Operators.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/UnaryNode.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/ZeroOpNode.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/ForeignKeyConstraint.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/IColumnMapping.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/IColumnMappingCollection.cs @@ -180,11 +178,11 @@ ../../../external/corefx/src/System.Data.Common/src/System/Data/ParameterDirection.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/PrimaryKeyTypeConverter.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/PropertyCollection.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/ProviderBase/DataReaderContainer.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/ProviderBase/SchemaMapping.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/Range.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/RbTree.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/RecordManager.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/StatementCompletedEventArgs.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/StatementCompletedEventHandler.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/RelatedView.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/RelationshipConverter.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/Rule.cs @@ -194,11 +192,106 @@ ../../../external/corefx/src/System.Data.Common/src/System/Data/Selection.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SimpleType.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SqlDbType.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/INullable.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLBinary.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLBoolean.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLByte.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLBytes.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/StateChangeEvent.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/StateChangeEventHandler.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/StatementType.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/StrongTypingException.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/UniqueConstraint.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/UpdateRowSource.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/UInt64Storage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/AdapterSwitches.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/AdapterUtil.Common.cs +../../../external/corefx/src/Common/src/System/Data/Common/AdapterUtil.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/BigIntegerStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/BooleanStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/ByteStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/CharStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataAdapter.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataColumnMapping.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataColumnMappingCollection.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataCommonEventSource.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataRecordInternal.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataTableMapping.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DataTableMappingCollection.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DateTimeOffsetStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DateTimeStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbCommand.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DBCommandBuilder.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbConnection.cs +../../../external/corefx/src/Common/src/System/Data/Common/DbConnectionPoolKey.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbConnectionStringBuilder.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbConnectionStringBuilderDescriptor.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataAdapter.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataReader.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataReaderExtensions.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataRecord.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataSourceEnumerator.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbEnumerator.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbException.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbMetaDataCollectionNames.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbMetaDataColumnNames.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbParameter.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbParameterCollection.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbProviderFactory.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbProviderFactory.CreatePermission.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbProviderSpecificTypePropertyAttribute.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DBSchemaRow.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DBSchemaTable.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbTransaction.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DecimalStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DoubleStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/Groupbybehavior.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/identifiercase.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/Int16Storage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/Int32Storage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/Int64Storage.cs +../../../external/corefx/src/Common/src/System/Data/Common/MultipartIdentifier.cs +../../../external/corefx/src/Common/src/System/Data/Common/NameValuePair.cs +../../../external/corefx/src/Common/src/System/Data/Common/DbConnectionOptions.Common.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/ObjectStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/RowUpdatedEventArgs.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/RowUpdatingEventArgs.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SByteStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SchemaTableColumn.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SchemaTableOptionalColumn.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SingleStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLConvert.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SqlUDTStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/StringStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SupportedJoinOperators.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/TimeSpanStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/UInt16Storage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/UInt32Storage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLCharsStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLDateTimeStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLDecimalStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLDoubleStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLGuidStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLInt16Storage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLInt32Storage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLInt64Storage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLMoneyStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLSingleStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLStringStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLBinaryStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQlBooleanStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLBytesStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Common/SQLTypes/SQLByteStorage.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/DataExpression.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/ExpressionNode.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/ExpressionParser.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/FilterException.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/FunctionNode.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/IFilter.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/LookupNode.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/NameNode.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/Operators.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/UnaryNode.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/ZeroOpNode.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/AggregateNode.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/BinaryNode.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/Filter/ConstNode.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLChars.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SqlCharStream.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLDateTime.cs @@ -209,89 +302,173 @@ ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLInt32.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLInt64.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLMoney.cs +../../../external/corefx/src/Common/src/System/Data/Common/SQLResource.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLSingle.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLString.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLUtility.cs ../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SqlXml.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/StateChangeEvent.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/StateChangeEventHandler.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/StatementCompletedEventArgs.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/StatementCompletedEventHandler.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/StatementType.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/StrongTypingException.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/UniqueConstraint.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/UpdateRowSource.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/updatestatus.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/XDRSchema.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/XmlDataLoader.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/XMLDiffLoader.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/XmlKeywords.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/XmlReadMode.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/xmlsaver.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/XMLSchema.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/XmlToDatasetMap.cs -../../../external/corefx/src/System.Data.Common/src/System/Data/XmlWriteMode.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/BaseTreeIterator.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/DataDocumentXPathNavigator.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/DataPointer.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/DataSetMappper.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/IXmlDataVirtualNode.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/RegionIterator.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/TreeIterator.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/XmlBoundElement.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/XmlDataDocument.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/XmlDataImplementation.cs -../../../external/corefx/src/System.Data.Common/src/System/Xml/XPathNodePointer.cs -../../../external/corefx/src/System.Data.SqlClient/src/System/Data/Common/ActivityCorrelator.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/INullable.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLBinary.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLBoolean.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLByte.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/SQLBytes.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/ProviderBase/DataReaderContainer.cs +../../../external/corefx/src/System.Data.Common/src/System/Data/ProviderBase/SchemaMapping.cs + +# +# System.Data.SqlClient: +# +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/ITypedGetters.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/ITypedGettersV3.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/ITypedSetters.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/ITypedSettersV3.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/ExtendedClrTypeCode.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/MemoryRecordBuffer.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/MetadataUtilsSmi.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiEventSink.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiEventSink_Default.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiGettersStream.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiMetaData.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiMetaDataProperty.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiRecordBuffer.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiSettersStream.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiTypedGetterSetter.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiXetterAccessMap.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SmiXetterTypeCode.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SqlDataRecord.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/SqlRecordBuffer.cs +../../../external/corefx/src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/ValueUtilsSmi.cs ../../../external/corefx/src/System.Data.SqlClient/src/System/Data/OperationAbortedException.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlDbColumn.cs +../../../external/corefx/src/Common/src/System/Data/Common/AdapterUtil.cs +../../../external/corefx/src/Common/src/System/Data/Common/DbConnectionPoolKey.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/Common/ActivityCorrelator.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/Common/DbConnectionStringCommon.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/Common/AdapterUtil.SqlClient.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/Common/DbConnectionOptions.cs +../../../external/corefx/src/Common/src/System/Data/Common/FieldNameLookup.cs +../../../external/corefx/src/Common/src/System/Data/Common/BasicFieldNameLookup.cs +../../../external/corefx/src/Common/src/System/Data/Common/MultipartIdentifier.cs +../../../external/corefx/src/Common/src/System/Data/Common/NameValuePair.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionClosed.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionFactory.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionInternal.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPool.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPoolGroup.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPoolGroupProviderInfo.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPoolIdentity.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPoolOptions.cs ../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPoolProviderInfo.cs ../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbReferenceCollection.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbMetaDataFactory.cs ../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/TimeoutTimer.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/Sql/SqlMetaData.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/Sql/SqlNotificationRequest.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlDelegatedTransaction.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlClientMetaDataCollectionNames.cs ../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/ApplicationIntent.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/LocalDBAPI.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/ParameterPeekAheadValue.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/RowsCopiedEventArgs.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/RowsCopiedEventHandler.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SortOrder.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlBuffer.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlBulkCopy.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlBulkCopyColumnMapping.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlBulkCopyColumnMappingCollection.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlBulkCopyOptions.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlCachedBuffer.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlClientDiagnosticListenerExtensions.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlClientFactory.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlCommand.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlCommandBuilder.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlConnection.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlCommandSet.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlConnectionFactory.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlConnectionHelper.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlConnectionPoolGroupProviderInfo.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlConnectionPoolKey.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlConnectionPoolProviderInfo.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlConnectionString.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlConnectionStringBuilder.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlConnectionTimeoutErrorInternal.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlDataAdapter.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlDataReader.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlEnums.cs ../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlError.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/sqlmetadatafactory.cs ../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlErrorCollection.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlException.cs ../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlInfoMessageEvent.cs -../referencesource/System.Data/Microsoft/SqlServer/Server/SqlTriggerContext.cs -../referencesource/System.Data/Misc/ExternDll.cs -../referencesource/System.Data/System/Data/CodeGen/StrongTypingException.cs -../referencesource/System.Data/System/Data/Common/AdapterUtil.cs -../referencesource/System.Data/System/Data/Common/DbConnectionOptions.cs -../referencesource/System.Data/System/Data/Common/DBConnectionString.cs -../referencesource/System.Data/System/Data/Common/DbConnectionStringCommon.cs -../referencesource/System.Data/System/Data/Common/DBDataPermission.cs -../referencesource/System.Data/System/Data/Common/DBDataPermissionAttribute.cs -../referencesource/System.Data/System/Data/Common/GreenMethods.cs -../referencesource/System.Data/System/Data/Common/NameValuePermission.cs -../referencesource/System.Data/System/Data/Common/SQLTypes/SqlXmlStorage.cs -../referencesource/System.Data/System/Data/DataSet.cs -../referencesource/System.Data/System/Data/OleDb/OleDbType.cs -../referencesource/System.Data/System/Data/OleDb/PropertyAttributes.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionPoolAuthenticationContext.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionPoolAuthenticationContextKey.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionPoolOptions.cs -../referencesource/System.Data/System/Data/ProviderBase/DbMetaDataFactory.cs -../referencesource/System.Data/System/Data/ProviderBase/WrappedIUnknown.cs -../referencesource/System.Data/System/Data/Sql/IBinarySerialize.cs -../referencesource/System.Data/System/Data/Sql/invalidudtexception.cs -../referencesource/System.Data/System/Data/Sql/SqlDataSourceEnumerator.cs -../referencesource/System.Data/System/Data/Sql/SqlFacetAttribute.cs -../referencesource/System.Data/System/Data/Sql/SqlFunctionAttribute.cs -../referencesource/System.Data/System/Data/Sql/SqlGenericUtil.cs -../referencesource/System.Data/System/Data/Sql/SqlMethodAttribute.cs -../referencesource/System.Data/System/Data/Sql/SqlNotificationRequest.cs -../referencesource/System.Data/System/Data/Sql/SqlProcedureAttribute.cs -../referencesource/System.Data/System/Data/Sql/SqlTriggerAttribute.cs -../referencesource/System.Data/System/Data/Sql/SqlUserDefinedAggregateAttribute.cs -../referencesource/System.Data/System/Data/Sql/SqlUserDefinedTypeAttribute.cs -../referencesource/System.Data/System/Data/Sql/TriggerAction.cs -../referencesource/System.Data/System/Data/SqlClient/LocalDBAPI.cs -../referencesource/System.Data/System/Data/SqlClient/SqlClientEncryptionType.cs -../referencesource/System.Data/System/Data/SqlClient/SqlClientPermission.cs -../referencesource/System.Data/System/Data/SqlClient/SqlConnectionString.cs -../referencesource/System.Data/System/Data/SqlClient/SqlConnectionStringBuilder.cs -../referencesource/System.Data/System/Data/SqlClient/SqlUtil.cs -../referencesource/System.Data/System/Data/SqlClient/TdsEnums.cs -../referencesource/System.Data/System/Data/SqlClient/TdsParserStaticMethods.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlInfoMessageEventHandler.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlInternalConnection.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlInternalConnectionTds.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/sqlinternaltransaction.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlParameter.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlParameterCollection.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlParameterCollectionHelper.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlParameterHelper.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlReferenceCollection.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlRowUpdatedEvent.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlRowUpdatedEventHandler.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlRowUpdatingEvent.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlRowUpdatingEventHandler.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlSequentialStream.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlSequentialTextReader.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlStatistics.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlStream.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlTransaction.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlUtil.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsEnums.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParameterSetter.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParser.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParserHelperClasses.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParserSessionPool.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParserStateObject.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParserStaticMethods.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsRecordBufferSetter.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsValueSetter.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlNotificationType.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlNotificationSource.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlNotificationInfo.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlNotificationEventArgs.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlDependencyListener.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlDependencyUtils.cs +#../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlDependencyUtils.AppDomain.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlDependency.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/OnChangedEventHandler.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlTypes/SqlTypeWorkarounds.cs +../../../external/corefx/src/Common/src/System/Data/Common/SQLResource.cs +../../../external/corefx/src/Common/src/System/NotImplemented.cs +../../../external/corefx/src/Common/src/System/Threading/Tasks/TaskToApm.cs +../../../external/corefx/src/System.Data.SqlClient/src/Interop/SNINativeMethodWrapper.Common.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIError.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIHandle.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNILoadHandle.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIMarsConnection.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIMarsHandle.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIMarsQueuedPacket.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNINpHandle.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIPacket.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIProxy.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNITcpHandle.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SslOverTdsStream.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNICommon.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SspiClientContextStatus.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SSRP.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParserStateObjectManaged.cs -corefx/DataView.cs -corefx/Index.cs +../../../external/corefx/src/Common/src/System/Net/ContextFlagsPal.cs +../../../external/corefx/src/Common/src/System/Net/SecurityStatusPal.cs +../../../external/corefx/src/Common/src/System/Net/Security/SecurityBufferType.cs +../../../external/corefx/src/Common/src/System/Net/Security/SecurityBuffer.cs +../../../external/corefx/src/Common/src/System/Net/DebugSafeHandle.cs +../../../external/corefx/src/Common/src/System/Net/DebugCriticalHandleMinusOneIsInvalid.cs +../../../external/corefx/src/Common/src/System/Net/Logging/NetEventSource.Common.cs +../../../external/corefx/src/Common/src/System/Net/Logging/DebugThreadTracking.cs +../../../external/corefx/src/Common/src/System/Net/InternalException.cs +../../../external/corefx/src/Common/src/System/Net/NegotiationInfoClass.cs +../../../external/corefx/src/System.Data.Odbc/src/Common/System/Data/Common/DBConnectionString.cs +../../../external/corefx/src/System.Data.Odbc/src/Common/System/Data/Common/NameValuePermission.cs +../../../external/corefx/src/System.Data.Odbc/src/Common/System/Data/Common/SafeNativeMethods.cs +../../../external/corefx/src/System.Data.Odbc/src/Common/System/Data/ProviderBase/DbBuffer.cs diff --git a/mcs/class/System.Data/corefx.unix.sources b/mcs/class/System.Data/corefx.unix.sources new file mode 100644 index 00000000000..0bb62295745 --- /dev/null +++ b/mcs/class/System.Data/corefx.unix.sources @@ -0,0 +1,17 @@ +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPoolIdentity.Unix.cs +../../../external/corefx/src/System.Data.SqlClient/src/Interop/SNINativeMethodWrapper.Unix.cs +../../../external/corefx/src/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs +../../../external/corefx/src/Common/src/System/Net/Security/Unix/SafeDeleteContext.cs +../../../external/corefx/src/Common/src/System/Net/Security/Unix/SafeFreeCredentials.cs +../../../external/corefx/src/Common/src/Microsoft/Win32/SafeHandles/GssSafeHandles.cs +../../../external/corefx/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.NetSecurityNative.cs +../../../external/corefx/src/Common/src/System/Net/Security/Unix/SafeFreeNegoCredentials.cs +../../../external/corefx/src/Common/src/Interop/Unix/Interop.Libraries.cs +../../../external/corefx/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssBuffer.cs +../../../external/corefx/src/Common/src/System/Net/Security/Unix/SafeDeleteNegoContext.cs +../../../external/corefx/src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssApiException.cs +../../../external/corefx/src/Common/src/System/Net/ContextFlagsAdapterPal.Unix.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParserStateObjectFactory.Managed.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParser.Unix.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/LocalDBAPI.Unix.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/LocalDB.Unix.cs diff --git a/mcs/class/System.Data/corefx/DBCommandBuilder.cs b/mcs/class/System.Data/corefx/DBCommandBuilder.cs deleted file mode 100644 index 98c7776a1d5..00000000000 --- a/mcs/class/System.Data/corefx/DBCommandBuilder.cs +++ /dev/null @@ -1,91 +0,0 @@ -namespace System.Data.Common -{ - partial class DbCommandBuilder - { - // open connection is required by OleDb/OdbcCommandBuilder.QuoteIdentifier and UnquoteIdentifier - // to get literals quotes from the driver - internal DbConnection GetConnection() - { - DbDataAdapter adapter = DataAdapter; - if (adapter != null) - { - DbCommand select = adapter.SelectCommand; - if (select != null) - { - return select.Connection; - } - } - - return null; - } - - static internal string[] ParseProcedureName(string name, string quotePrefix, string quoteSuffix) { - // Procedure may consist of up to four parts: - // 0) Server - // 1) Catalog - // 2) Schema - // 3) ProcedureName - // - // Parse the string into four parts, allowing the last part to contain '.'s. - // If less than four period delimited parts, use the parts from procedure backwards. - // - const string Separator = "."; - - string[] qualifiers = new string[4]; - if (!ADP.IsEmpty(name)) { - bool useQuotes = !ADP.IsEmpty(quotePrefix) && !ADP.IsEmpty(quoteSuffix); - - int currentPos = 0, parts; - for(parts = 0; (parts < qualifiers.Length) && (currentPos < name.Length); ++parts) { - int startPos = currentPos; - - // does the part begin with a quotePrefix? - if (useQuotes && (name.IndexOf(quotePrefix, currentPos, quotePrefix.Length, StringComparison.Ordinal) == currentPos)) { - currentPos += quotePrefix.Length; // move past the quotePrefix - - // search for the quoteSuffix (or end of string) - while (currentPos < name.Length) { - currentPos = name.IndexOf(quoteSuffix, currentPos, StringComparison.Ordinal); - if (currentPos < 0) { - // error condition, no quoteSuffix - currentPos = name.Length; - break; - } - else { - currentPos += quoteSuffix.Length; // move past the quoteSuffix - - // is this a double quoteSuffix? - if ((currentPos < name.Length) && (name.IndexOf(quoteSuffix, currentPos, quoteSuffix.Length, StringComparison.Ordinal) == currentPos)) { - // a second quoteSuffix, continue search for terminating quoteSuffix - currentPos += quoteSuffix.Length; // move past the second quoteSuffix - } - else { - // found the terminating quoteSuffix - break; - } - } - } - } - - // search for separator (either no quotePrefix or already past quoteSuffix) - if (currentPos < name.Length) { - currentPos = name.IndexOf(Separator, currentPos, StringComparison.Ordinal); - if ((currentPos < 0) || (parts == qualifiers.Length-1)) { - // last part that can be found - currentPos = name.Length; - } - } - - qualifiers[parts] = name.Substring(startPos, currentPos-startPos); - currentPos += Separator.Length; - } - - // allign the qualifiers if we had less than MaxQualifiers - for(int j = qualifiers.Length-1; 0 <= j; --j) { - qualifiers[j] = ((0 < parts) ? qualifiers[--parts] : null); - } - } - return qualifiers; - } - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/DataView.cs b/mcs/class/System.Data/corefx/DataView.cs deleted file mode 100644 index 51e4afe6ace..00000000000 --- a/mcs/class/System.Data/corefx/DataView.cs +++ /dev/null @@ -1,40 +0,0 @@ -namespace System.Data -{ - partial class DataView - { - /// - /// Allow construction of DataView with and - /// - /// This is a copy of the other DataView ctor and needs to be kept in sync - internal DataView(DataTable table, System.Predicate predicate, System.Comparison comparison, DataViewRowState RowState) { - GC.SuppressFinalize(this); - Bid.Trace(" %d#, table=%d, RowState=%d{ds.DataViewRowState}\n", - ObjectID, (table != null) ? table.ObjectID : 0, (int)RowState); - if (table == null) - throw ExceptionBuilder.CanNotUse(); - - this._dvListener = new DataViewListener(this); - this._locked = false; - this._table = table; - _dvListener.RegisterMetaDataEvents(this._table); - - if ((((int)RowState) & - ((int)~(DataViewRowState.CurrentRows | DataViewRowState.OriginalRows))) != 0) { - throw ExceptionBuilder.RecordStateRange(); - } - else if (( ((int)RowState) & ((int)DataViewRowState.ModifiedOriginal) ) != 0 && - ( ((int)RowState) & ((int)DataViewRowState.ModifiedCurrent) ) != 0 - ) { - throw ExceptionBuilder.SetRowStateFilter(); - } - _comparison = comparison; - SetIndex2("", RowState, ((null != predicate) ? new RowPredicateFilter(predicate) : null), true); - } - - /// This method exists for LinqDataView to keep a level of abstraction away from the RBTree - internal Range FindRecords(Index.ComparisonBySelector comparison, TKey key) where TRow : DataRow - { - return _index.FindRecords(comparison, key); - } - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/DbConnection.cs b/mcs/class/System.Data/corefx/DbConnection.cs index d53b1d6d581..4b5f1439c5d 100644 --- a/mcs/class/System.Data/corefx/DbConnection.cs +++ b/mcs/class/System.Data/corefx/DbConnection.cs @@ -1,3 +1,7 @@ +// 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 System.Data.Common { partial class DbConnection diff --git a/mcs/class/System.Data/corefx/DbConnectionOptions.cs b/mcs/class/System.Data/corefx/DbConnectionOptions.cs new file mode 100644 index 00000000000..cdd1d7397cb --- /dev/null +++ b/mcs/class/System.Data/corefx/DbConnectionOptions.cs @@ -0,0 +1,208 @@ +// 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. + +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Runtime.Versioning; +using System.Text; + +namespace System.Data.Common +{ + internal partial class DbConnectionOptions + { + // SxS notes: + // * this method queries "DataDirectory" value from the current AppDomain. + // This string is used for to replace "!DataDirectory!" values in the connection string, it is not considered as an "exposed resource". + // * This method uses GetFullPath to validate that root path is valid, the result is not exposed out. + [ResourceExposure(ResourceScope.None)] + [ResourceConsumption(ResourceScope.Machine, ResourceScope.Machine)] + internal static string ExpandDataDirectory(string keyword, string value, ref string datadir) + { + string fullPath = null; + if ((null != value) && value.StartsWith(DataDirectory, StringComparison.OrdinalIgnoreCase)) + { + string rootFolderPath = datadir; + if (null == rootFolderPath) + { + // find the replacement path + object rootFolderObject = AppDomain.CurrentDomain.GetData("DataDirectory"); + rootFolderPath = (rootFolderObject as string); + if ((null != rootFolderObject) && (null == rootFolderPath)) + { + throw ADP.InvalidDataDirectory(); + } + else if (string.IsNullOrEmpty(rootFolderPath)) + { + rootFolderPath = AppDomain.CurrentDomain.BaseDirectory; + } + if (null == rootFolderPath) + { + rootFolderPath = ""; + } + // cache the |DataDir| for ExpandDataDirectories + datadir = rootFolderPath; + } + + // We don't know if rootFolderpath ends with '\', and we don't know if the given name starts with onw + int fileNamePosition = DataDirectory.Length; // filename starts right after the '|datadirectory|' keyword + bool rootFolderEndsWith = (0 < rootFolderPath.Length) && rootFolderPath[rootFolderPath.Length - 1] == '\\'; + bool fileNameStartsWith = (fileNamePosition < value.Length) && value[fileNamePosition] == '\\'; + + // replace |datadirectory| with root folder path + if (!rootFolderEndsWith && !fileNameStartsWith) + { + // need to insert '\' + fullPath = rootFolderPath + '\\' + value.Substring(fileNamePosition); + } + else if (rootFolderEndsWith && fileNameStartsWith) + { + // need to strip one out + fullPath = rootFolderPath + value.Substring(fileNamePosition + 1); + } + else + { + // simply concatenate the strings + fullPath = rootFolderPath + value.Substring(fileNamePosition); + } + + // verify root folder path is a real path without unexpected "..\" + if (!ADP.GetFullPath(fullPath).StartsWith(rootFolderPath, StringComparison.Ordinal)) + { + throw ADP.InvalidConnectionOptionValue(keyword); + } + } + return fullPath; + } + + internal string ExpandDataDirectories(ref string filename, ref int position) + { + string value = null; + StringBuilder builder = new StringBuilder(_usersConnectionString.Length); + string datadir = null; + + int copyPosition = 0; + bool expanded = false; + + for (NameValuePair current = _keyChain; null != current; current = current.Next) + { + value = current.Value; + + // remove duplicate keyswords from connectionstring + //if ((object)this[current.Name] != (object)value) { + // expanded = true; + // copyPosition += current.Length; + // continue; + //} + + // There is a set of keywords we explictly do NOT want to expand |DataDirectory| on + if (_useOdbcRules) + { + switch (current.Name) + { + case DbConnectionOptionKeywords.Driver: + case DbConnectionOptionKeywords.Pwd: + case DbConnectionOptionKeywords.UID: + break; + default: + value = ExpandDataDirectory(current.Name, value, ref datadir); + break; + } + } + else + { + switch (current.Name) + { + case DbConnectionOptionKeywords.Provider: + case DbConnectionOptionKeywords.DataProvider: + case DbConnectionOptionKeywords.RemoteProvider: + case DbConnectionOptionKeywords.ExtendedProperties: + case DbConnectionOptionKeywords.UserID: + case DbConnectionOptionKeywords.Password: + case DbConnectionOptionKeywords.UID: + case DbConnectionOptionKeywords.Pwd: + break; + default: + value = ExpandDataDirectory(current.Name, value, ref datadir); + break; + } + } + if (null == value) + { + value = current.Value; + } + if (_useOdbcRules || (DbConnectionOptionKeywords.FileName != current.Name)) + { + if (value != current.Value) + { + expanded = true; + AppendKeyValuePairBuilder(builder, current.Name, value, _useOdbcRules); + builder.Append(';'); + } + else + { + builder.Append(_usersConnectionString, copyPosition, current.Length); + } + } + else + { + // strip out 'File Name=myconnection.udl' for OleDb + // remembering is value for which UDL file to open + // and where to insert the strnig + expanded = true; + filename = value; + position = builder.Length; + } + copyPosition += current.Length; + } + + if (expanded) + { + value = builder.ToString(); + } + else + { + value = null; + } + return value; + } + + internal bool HasBlankPassword { + get { + if (!ConvertValueToIntegratedSecurity()) { + if (_parsetable.ContainsKey(KEY.Password)) { + return ADP.IsEmpty((string)_parsetable[KEY.Password]); + } else + if (_parsetable.ContainsKey(SYNONYM.Pwd)) { + return ADP.IsEmpty((string)_parsetable[SYNONYM.Pwd]); // MDAC 83097 + } else { + return ((_parsetable.ContainsKey(KEY.User_ID) && !ADP.IsEmpty((string)_parsetable[KEY.User_ID])) || (_parsetable.ContainsKey(SYNONYM.UID) && !ADP.IsEmpty((string)_parsetable[SYNONYM.UID]))); + } + } + return false; + } + } + } + + + internal static class DbConnectionOptionKeywords + { + // Odbc + internal const string Driver = "driver"; + internal const string Pwd = "pwd"; + internal const string UID = "uid"; + + // OleDb + internal const string DataProvider = "data provider"; + internal const string ExtendedProperties = "extended properties"; + internal const string FileName = "file name"; + internal const string Provider = "provider"; + internal const string RemoteProvider = "remote provider"; + + // common keywords (OleDb, OracleClient, SqlClient) + internal const string Password = "password"; + internal const string UserID = "user id"; + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/DiagnosticListener.cs b/mcs/class/System.Data/corefx/DiagnosticListener.cs new file mode 100644 index 00000000000..f5c11cd9a5c --- /dev/null +++ b/mcs/class/System.Data/corefx/DiagnosticListener.cs @@ -0,0 +1,13 @@ +// 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. + +using System; + +internal class DiagnosticListener +{ + internal static bool DiagnosticListenerEnabled = false; + internal DiagnosticListener(string s) {} + internal bool IsEnabled(string s) => DiagnosticListenerEnabled; + internal void Write(string s1, object s2) { System.Console.WriteLine($"|| {s1}, {s2}");} +} diff --git a/mcs/class/System.Data/corefx/FieldNameLookup.cs b/mcs/class/System.Data/corefx/FieldNameLookup.cs deleted file mode 100644 index 80c5925c18a..00000000000 --- a/mcs/class/System.Data/corefx/FieldNameLookup.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace System.Data.ProviderBase -{ - partial class FieldNameLookup - { - public int IndexOfName(string fieldName) - { - if (null == _fieldNameLookup) - { - GenerateLookup(); - } - // via case sensitive search, first match with lowest ordinal matches - object value = _fieldNameLookup[fieldName]; - return ((null != value) ? (int)value : -1); - } - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/Index.cs b/mcs/class/System.Data/corefx/Index.cs deleted file mode 100644 index 7d6a3beeb78..00000000000 --- a/mcs/class/System.Data/corefx/Index.cs +++ /dev/null @@ -1,21 +0,0 @@ -namespace System.Data -{ - partial class Index - { - internal delegate int ComparisonBySelector(TKey key, TRow row) where TRow:DataRow; - - /// This method exists for LinqDataView to keep a level of abstraction away from the RBTree - internal Range FindRecords(ComparisonBySelector comparison, TKey key) where TRow:DataRow - { - int x = _records.root; - while (IndexTree.NIL != x) - { - int c = comparison(key, (TRow)_table._recordManager[_records.Key(x)]); - if (c == 0) { break; } - if (c < 0) { x = _records.Left(x); } - else { x = _records.Right(x); } - } - return GetRangeFromNode(x); - } - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/Odbc/AdapterUtil.cs b/mcs/class/System.Data/corefx/Odbc/AdapterUtil.cs new file mode 100644 index 00000000000..ca6c2edb4bc --- /dev/null +++ b/mcs/class/System.Data/corefx/Odbc/AdapterUtil.cs @@ -0,0 +1,242 @@ +// 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. + +using System.Diagnostics; +using System.Globalization; +using System.IO; +using System.Runtime.CompilerServices; +using System.Runtime.ConstrainedExecution; +using System.Runtime.Versioning; +using System.Text; +using System.Security.Permissions; +using System.ComponentModel; +using System.Configuration; +using System.Xml; + +namespace System.Data.Common +{ + internal static partial class ADP + { + internal const int DecimalMaxPrecision = 29; + internal const int DecimalMaxPrecision28 = 28; // there are some cases in Odbc where we need that ... + + internal static readonly IntPtr PtrZero = new IntPtr(0); // IntPtr.Zero + internal static readonly int PtrSize = IntPtr.Size; + + internal const string BeginTransaction = "BeginTransaction"; + internal const string ChangeDatabase = "ChangeDatabase"; + internal const string CommitTransaction = "CommitTransaction"; + internal const string CommandTimeout = "CommandTimeout"; + internal const string DeriveParameters = "DeriveParameters"; + internal const string ExecuteReader = "ExecuteReader"; + internal const string ExecuteNonQuery = "ExecuteNonQuery"; + internal const string ExecuteScalar = "ExecuteScalar"; + internal const string GetSchema = "GetSchema"; + internal const string GetSchemaTable = "GetSchemaTable"; + internal const string Prepare = "Prepare"; + internal const string RollbackTransaction = "RollbackTransaction"; + internal const string QuoteIdentifier = "QuoteIdentifier"; + internal const string UnquoteIdentifier = "UnquoteIdentifier"; + + internal static bool NeedManualEnlistment() => false; + internal static bool IsEmpty(string str) => string.IsNullOrEmpty(str); + + internal static Exception DatabaseNameTooLong() + { + return Argument(SR.GetString(SR.ADP_DatabaseNameTooLong)); + } + + internal static int StringLength(string inputString) + { + return ((null != inputString) ? inputString.Length : 0); + } + + internal static Exception NumericToDecimalOverflow() + { + return InvalidCast(SR.GetString(SR.ADP_NumericToDecimalOverflow)); + } + + internal static Exception OdbcNoTypesFromProvider() + { + return InvalidOperation(SR.GetString(SR.ADP_OdbcNoTypesFromProvider)); + } + + internal static ArgumentException InvalidRestrictionValue(string collectionName, string restrictionName, string restrictionValue) + { + return ADP.Argument(SR.GetString(SR.MDF_InvalidRestrictionValue, collectionName, restrictionName, restrictionValue)); + } + + internal static Exception DataReaderNoData() + { + return InvalidOperation(SR.GetString(SR.ADP_DataReaderNoData)); + } + + internal static Exception ConnectionIsDisabled(Exception InnerException) + { + return InvalidOperation(SR.GetString(SR.ADP_ConnectionIsDisabled), InnerException); + } + + internal static Exception OffsetOutOfRangeException() + { + return InvalidOperation(SR.GetString(SR.ADP_OffsetOutOfRangeException)); + } + + internal static ArgumentException InvalidDataType(TypeCode typecode) + { + return Argument(SR.GetString(SR.ADP_InvalidDataType, typecode.ToString())); + } + + static internal InvalidOperationException QuotePrefixNotSet(string method) + { + return InvalidOperation(Res.GetString(Res.ADP_QuotePrefixNotSet, method)); + } + + [ResourceExposure(ResourceScope.Machine)] + [ResourceConsumption(ResourceScope.Machine)] + internal static string GetFullPath(string filename) + { // MDAC 77686 + return Path.GetFullPath(filename); + } + + internal static InvalidOperationException InvalidDataDirectory() + { + return ADP.InvalidOperation(SR.GetString(SR.ADP_InvalidDataDirectory)); + } + + internal static ArgumentException UnknownDataTypeCode(Type dataType, TypeCode typeCode) + { + return Argument(SR.GetString(SR.ADP_UnknownDataTypeCode, ((int)typeCode).ToString(CultureInfo.InvariantCulture), dataType.FullName)); + } + + internal static void EscapeSpecialCharacters(string unescapedString, StringBuilder escapedString) + { + // note special characters list is from character escapes + // in the MSDN regular expression language elements documentation + // added ] since escaping it seems necessary + const string specialCharacters = ".$^{[(|)*+?\\]"; + + foreach (char currentChar in unescapedString) + { + if (specialCharacters.IndexOf(currentChar) >= 0) + { + escapedString.Append("\\"); + } + escapedString.Append(currentChar); + } + } + + [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] + internal static IntPtr IntPtrOffset(IntPtr pbase, Int32 offset) + { + if (4 == ADP.PtrSize) + { + return (IntPtr)checked(pbase.ToInt32() + offset); + } + Debug.Assert(8 == ADP.PtrSize, "8 != IntPtr.Size"); // MDAC 73747 + return (IntPtr)checked(pbase.ToInt64() + offset); + } + + static internal ArgumentOutOfRangeException NotSupportedUserDefinedTypeSerializationFormat(Microsoft.SqlServer.Server.Format value, string method) { + return ADP.NotSupportedEnumerationValue(typeof(Microsoft.SqlServer.Server.Format), value.ToString(), method); + } + + static internal ArgumentOutOfRangeException InvalidUserDefinedTypeSerializationFormat(Microsoft.SqlServer.Server.Format value) { +#if DEBUG + switch(value) { + case Microsoft.SqlServer.Server.Format.Unknown: + case Microsoft.SqlServer.Server.Format.Native: + case Microsoft.SqlServer.Server.Format.UserDefined: + Debug.Assert(false, "valid UserDefinedTypeSerializationFormat " + value.ToString()); + break; + } +#endif + return InvalidEnumerationValue(typeof(Microsoft.SqlServer.Server.Format), (int) value); + } + + static internal ArgumentOutOfRangeException ArgumentOutOfRange(string message, string parameterName, object value) { + ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName, value, message); + TraceExceptionAsReturnValue(e); + return e; + } + + static internal Exception InvalidXMLBadVersion() { + return Argument(Res.GetString(Res.ADP_InvalidXMLBadVersion)); + } + + static internal Exception NotAPermissionElement() { + return Argument(Res.GetString(Res.ADP_NotAPermissionElement)); + } + + static internal Exception PermissionTypeMismatch() { + return Argument(Res.GetString(Res.ADP_PermissionTypeMismatch)); + } + + static internal ArgumentOutOfRangeException InvalidPermissionState(PermissionState value) { +#if DEBUG + switch(value) { + case PermissionState.Unrestricted: + case PermissionState.None: + Debug.Assert(false, "valid PermissionState " + value.ToString()); + break; + } +#endif + return InvalidEnumerationValue(typeof(PermissionState), (int) value); + } + +#if !MOBILE + static internal ConfigurationException Configuration(string message) { + ConfigurationException e = new ConfigurationErrorsException(message); + TraceExceptionAsReturnValue(e); + return e; + } + static internal ConfigurationException Configuration(string message, XmlNode node) { + ConfigurationException e = new ConfigurationErrorsException(message, node); + TraceExceptionAsReturnValue(e); + return e; + } +#endif + + static internal ArgumentException ConfigProviderNotFound() { + return Argument(Res.GetString(Res.ConfigProviderNotFound)); + } + static internal InvalidOperationException ConfigProviderInvalid() { + return InvalidOperation(Res.GetString(Res.ConfigProviderInvalid)); + } + +#if !MOBILE + static internal ConfigurationException ConfigProviderNotInstalled() { + return Configuration(Res.GetString(Res.ConfigProviderNotInstalled)); + } + static internal ConfigurationException ConfigProviderMissing() { + return Configuration(Res.GetString(Res.ConfigProviderMissing)); + } + + // + // DbProviderConfigurationHandler + // + static internal ConfigurationException ConfigBaseNoChildNodes(XmlNode node) { // Res.Config_base_no_child_nodes + return Configuration(Res.GetString(Res.ConfigBaseNoChildNodes), node); + } + static internal ConfigurationException ConfigBaseElementsOnly(XmlNode node) { // Res.Config_base_elements_only + return Configuration(Res.GetString(Res.ConfigBaseElementsOnly), node); + } + static internal ConfigurationException ConfigUnrecognizedAttributes(XmlNode node) { // Res.Config_base_unrecognized_attribute + return Configuration(Res.GetString(Res.ConfigUnrecognizedAttributes, node.Attributes[0].Name), node); + } + static internal ConfigurationException ConfigUnrecognizedElement(XmlNode node) { // Res.Config_base_unrecognized_element + return Configuration(Res.GetString(Res.ConfigUnrecognizedElement), node); + } + static internal ConfigurationException ConfigSectionsUnique(string sectionName) { // Res.Res.ConfigSectionsUnique + return Configuration(Res.GetString(Res.ConfigSectionsUnique, sectionName)); + } + static internal ConfigurationException ConfigRequiredAttributeMissing(string name, XmlNode node) { // Res.Config_base_required_attribute_missing + return Configuration(Res.GetString(Res.ConfigRequiredAttributeMissing, name), node); + } + static internal ConfigurationException ConfigRequiredAttributeEmpty(string name, XmlNode node) { // Res.Config_base_required_attribute_empty + return Configuration(Res.GetString(Res.ConfigRequiredAttributeEmpty, name), node); + } +#endif + static internal Exception OleDb() => new NotImplementedException("OleDb is not implemented."); + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/Odbc/DbConnectionStringCommon.cs b/mcs/class/System.Data/corefx/Odbc/DbConnectionStringCommon.cs new file mode 100644 index 00000000000..d155fcd4e87 --- /dev/null +++ b/mcs/class/System.Data/corefx/Odbc/DbConnectionStringCommon.cs @@ -0,0 +1,21 @@ +// 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. + +using System.Diagnostics; +using System.Data.SqlClient; +using System.Reflection; + +namespace System.Data.Common +{ + partial class DbConnectionStringDefaults + { + internal const string Dsn = ""; + internal const string Driver = ""; + } + + partial class DbConnectionStringKeywords + { + internal const string Dsn = "Dsn"; + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/Odbc/OdbcConnection.cs b/mcs/class/System.Data/corefx/Odbc/OdbcConnection.cs new file mode 100644 index 00000000000..fd7503c8701 --- /dev/null +++ b/mcs/class/System.Data/corefx/Odbc/OdbcConnection.cs @@ -0,0 +1,30 @@ +// 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. + +using System; +using System.Data; +using System.Data.Common; +using System.Security; +using System.Security.Permissions; + +namespace System.Data.Odbc +{ + partial class OdbcConnection + { + [MonoTODO] + public void EnlistDistributedTransaction(System.EnterpriseServices.ITransaction transaction) => throw new NotImplementedException(); + + [MonoTODO] + public override void EnlistTransaction(System.Transactions.Transaction transaction) => throw new NotImplementedException(); + + [MonoTODO] + public override System.Data.DataTable GetSchema() => throw new NotImplementedException(); + + [MonoTODO] + public override System.Data.DataTable GetSchema(string collectionName) => throw new NotImplementedException(); + + [MonoTODO] + public override System.Data.DataTable GetSchema(string collectionName, string[] restrictionValues) => throw new NotImplementedException(); + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/Odbc/OdbcFactory.cs b/mcs/class/System.Data/corefx/Odbc/OdbcFactory.cs new file mode 100644 index 00000000000..7e6764cb834 --- /dev/null +++ b/mcs/class/System.Data/corefx/Odbc/OdbcFactory.cs @@ -0,0 +1,18 @@ +// 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. + +using System; +using System.Data; +using System.Data.Common; +using System.Security; +using System.Security.Permissions; + +namespace System.Data.Odbc +{ + partial class OdbcFactory + { + public override CodeAccessPermission CreatePermission(PermissionState state) => + new OdbcPermission(state); + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/Odbc/Res.cs b/mcs/class/System.Data/corefx/Odbc/Res.cs new file mode 100644 index 00000000000..06ba2bdaa0c --- /dev/null +++ b/mcs/class/System.Data/corefx/Odbc/Res.cs @@ -0,0 +1,45 @@ +// 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. + +using System; + +// needed for ../referencesource/System.Data/System/Data/CodeGen/datacache.cs +internal static partial class Res +{ + internal static string GetString(string name) => name; + internal static string GetString(string name, params object[] args) => string.Format(name, args); + + internal const string CodeGen_InvalidIdentifier = "Cannot generate identifier for name '{0}'"; + internal const string CodeGen_DuplicateTableName = "There is more than one table with the same name '{0}' (even if namespace is different)"; + internal const string CodeGen_TypeCantBeNull = "Column '{0}': Type '{1}' cannot be null"; + internal const string CodeGen_NoCtor0 = "Column '{0}': Type '{1}' does not have parameterless constructor"; + internal const string CodeGen_NoCtor1 = "Column '{0}': Type '{1}' does not have constructor with string argument"; + + internal const string SQLUDT_MaxByteSizeValue = "range: 0-8000"; + internal const string SqlUdt_InvalidUdtMessage = "'{0}' is an invalid user defined type, reason: {1}."; + internal const string Sql_NullCommandText = "Command parameter must have a non null and non empty command text."; + internal const string Sql_MismatchedMetaDataDirectionArrayLengths = "MetaData parameter array must have length equivalent to ParameterDirection array argument."; + + public const string ADP_InvalidXMLBadVersion = "Invalid Xml; can only parse elements of version one."; + public const string ADP_NotAPermissionElement = "Given security element is not a permission element."; + public const string ADP_PermissionTypeMismatch = "Type mismatch."; + + public const string ConfigProviderNotFound = "Unable to find the requested .Net Framework Data Provider. It may not be installed."; + public const string ConfigProviderInvalid = "The requested .Net Framework Data Provider's implementation does not have an Instance field of a System.Data.Common.DbProviderFactory derived type."; + public const string ConfigProviderNotInstalled = "Failed to find or load the registered .Net Framework Data Provider."; + public const string ConfigProviderMissing = "The missing .Net Framework Data Provider's assembly qualified name is required."; + public const string ConfigBaseElementsOnly = "Only elements allowed."; + public const string ConfigBaseNoChildNodes = "Child nodes not allowed."; + public const string ConfigUnrecognizedAttributes = "Unrecognized attribute '{0}'."; + public const string ConfigUnrecognizedElement = "Unrecognized element."; + public const string ConfigSectionsUnique = "The '{0}' section can only appear once per config file."; + public const string ConfigRequiredAttributeMissing = "Required attribute '{0}' not found."; + public const string ConfigRequiredAttributeEmpty = "Required attribute '{0}' cannot be empty."; + public const string ADP_QuotePrefixNotSet = "{0} requires open connection when the quote prefix has not been set."; +} + +internal static partial class SR +{ + public static string GetResourceString(string resourceKey, string defaultString) => defaultString; +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/OleDbStubs.cs b/mcs/class/System.Data/corefx/OleDbStubs.cs new file mode 100644 index 00000000000..90113163505 --- /dev/null +++ b/mcs/class/System.Data/corefx/OleDbStubs.cs @@ -0,0 +1,485 @@ +// 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. +#pragma warning disable 108, 114, 67, 3006 + +using System; +using System.Data; +using System.Data.Common; +using System.Runtime.Serialization; +using System.Security; +using System.Security.Permissions; +using System.Collections; +using System.ComponentModel; +using System.Collections.Generic; +using System.Diagnostics; +using System.Threading; +using System.EnterpriseServices; +using System.Transactions; + +namespace System.Data.OleDb +{ + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbCommand : System.Data.Common.DbCommand, System.Data.IDbCommand, System.ICloneable, System.IDisposable + { + public OleDbCommand () {} + public OleDbCommand (String cmdText) => throw ADP.OleDb(); + public OleDbCommand (String cmdText, OleDbConnection connection) => throw ADP.OleDb(); + public OleDbCommand (String cmdText, OleDbConnection connection, OleDbTransaction transaction) => throw ADP.OleDb(); + public override string CommandText { get { throw ADP.OleDb(); } set { } } + public override int CommandTimeout { get { throw ADP.OleDb(); } set { } } + public override System.Data.CommandType CommandType { get { throw ADP.OleDb(); } set { } } + public new System.Data.OleDb.OleDbConnection Connection { get { throw ADP.OleDb(); } set { } } + protected override System.Data.Common.DbConnection DbConnection { get { throw ADP.OleDb(); } set { } } + protected override System.Data.Common.DbParameterCollection DbParameterCollection => throw ADP.OleDb(); + protected override System.Data.Common.DbTransaction DbTransaction { get { throw ADP.OleDb(); } set { } } + public override bool DesignTimeVisible { get { throw ADP.OleDb(); } set { } } + public new System.Data.OleDb.OleDbParameterCollection Parameters => throw ADP.OleDb(); + public new System.Data.OleDb.OleDbTransaction Transaction { get { throw ADP.OleDb(); } set { } } + public override System.Data.UpdateRowSource UpdatedRowSource { get { throw ADP.OleDb(); } set { } } + public override void Cancel() { } + public OleDbCommand Clone () => throw ADP.OleDb(); + protected override System.Data.Common.DbParameter CreateDbParameter() => throw ADP.OleDb(); + public new OleDbParameter CreateParameter () => throw ADP.OleDb(); + protected override void Dispose (Boolean disposing) => throw ADP.OleDb(); + protected override DbDataReader ExecuteDbDataReader (CommandBehavior behavior) => throw ADP.OleDb(); + public override Int32 ExecuteNonQuery () => throw ADP.OleDb(); + public new OleDbDataReader ExecuteReader () => throw ADP.OleDb(); + public new OleDbDataReader ExecuteReader (CommandBehavior behavior) => throw ADP.OleDb(); + public override Object ExecuteScalar () => throw ADP.OleDb(); + public override void Prepare () => throw ADP.OleDb(); + public void ResetCommandTimeout () => throw ADP.OleDb(); + System.Data.IDataReader System.Data.IDbCommand.ExecuteReader() => throw ADP.OleDb(); + System.Data.IDataReader System.Data.IDbCommand.ExecuteReader(System.Data.CommandBehavior behavior) => throw ADP.OleDb(); + object System.ICloneable.Clone() => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbCommandBuilder : System.Data.Common.DbCommandBuilder + { + public OleDbCommandBuilder() => throw ADP.OleDb(); + public OleDbCommandBuilder (OleDbDataAdapter adapter) => throw ADP.OleDb(); + public new OleDbDataAdapter DataAdapter { get { throw ADP.OleDb(); } set { } } + protected override void ApplyParameterInfo (DbParameter parameter, DataRow datarow, StatementType statementType, Boolean whereClause) => throw ADP.OleDb(); + public static void DeriveParameters (OleDbCommand command) => throw ADP.OleDb(); + public OleDbCommand GetDeleteCommand () => throw ADP.OleDb(); + public OleDbCommand GetDeleteCommand (Boolean useColumnsForParameterNames) => throw ADP.OleDb(); + public OleDbCommand GetInsertCommand () => throw ADP.OleDb(); + public OleDbCommand GetInsertCommand (Boolean useColumnsForParameterNames) => throw ADP.OleDb(); + protected override String GetParameterName (Int32 parameterOrdinal) => throw ADP.OleDb(); + protected override String GetParameterName (String parameterName) => throw ADP.OleDb(); + protected override String GetParameterPlaceholder (Int32 parameterOrdinal) => throw ADP.OleDb(); + public new OleDbCommand GetUpdateCommand () => throw ADP.OleDb(); + public new OleDbCommand GetUpdateCommand (Boolean useColumnsForParameterNames) => throw ADP.OleDb(); + public override String QuoteIdentifier (String unquotedIdentifier) => throw ADP.OleDb(); + public String QuoteIdentifier (String unquotedIdentifier, OleDbConnection connection) => throw ADP.OleDb(); + protected override void SetRowUpdatingHandler (DbDataAdapter adapter) => throw ADP.OleDb(); + public override String UnquoteIdentifier (String quotedIdentifier) => throw ADP.OleDb(); + public String UnquoteIdentifier (String quotedIdentifier, OleDbConnection connection) => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbConnection : System.Data.Common.DbConnection, System.Data.IDbConnection, System.ICloneable, System.IDisposable + { + public OleDbConnection() => throw ADP.OleDb(); + public OleDbConnection (String connectionString) => throw ADP.OleDb(); + public override String ConnectionString { get { throw ADP.OleDb(); } set { } } + public override Int32 ConnectionTimeout => throw ADP.OleDb(); + public override String Database => throw ADP.OleDb(); + public override String DataSource => throw ADP.OleDb(); + public String Provider => throw ADP.OleDb(); + public override String ServerVersion => throw ADP.OleDb(); + public override ConnectionState State => throw ADP.OleDb(); + protected override DbTransaction BeginDbTransaction (IsolationLevel isolationLevel) => throw ADP.OleDb(); + public new OleDbTransaction BeginTransaction () => throw ADP.OleDb(); + public new OleDbTransaction BeginTransaction (IsolationLevel isolationLevel) => throw ADP.OleDb(); + public override void ChangeDatabase (String value) => throw ADP.OleDb(); + public override void Close () => throw ADP.OleDb(); + public new OleDbCommand CreateCommand () => throw ADP.OleDb(); + protected override DbCommand CreateDbCommand () => throw ADP.OleDb(); + protected override void Dispose (Boolean disposing) => throw ADP.OleDb(); + public void EnlistDistributedTransaction (ITransaction transaction) => throw ADP.OleDb(); + public override void EnlistTransaction (Transaction transaction) => throw ADP.OleDb(); + public DataTable GetOleDbSchemaTable (Guid schema, Object[] restrictions) => throw ADP.OleDb(); + public override DataTable GetSchema () => throw ADP.OleDb(); + public override DataTable GetSchema (String collectionName) => throw ADP.OleDb(); + public override DataTable GetSchema (String collectionName, String[] restrictionValues) => throw ADP.OleDb(); + public override void Open () => throw ADP.OleDb(); + public static void ReleaseObjectPool () => throw ADP.OleDb(); + public void ResetState () => throw ADP.OleDb(); + public event OleDbInfoMessageEventHandler InfoMessage; + object System.ICloneable.Clone() => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbConnectionStringBuilder : System.Data.Common.DbConnectionStringBuilder + { + public OleDbConnectionStringBuilder() => throw ADP.OleDb(); + public OleDbConnectionStringBuilder (String connectionString) => throw ADP.OleDb(); + public string DataSource { get { throw ADP.OleDb(); } set { } } + public string FileName { get { throw ADP.OleDb(); } set { } } + public object Item { get { throw ADP.OleDb(); } set { } } + public ICollection Keys { get { throw ADP.OleDb(); } set { } } + public int OleDbServices { get { throw ADP.OleDb(); } set { } } + public bool PersistSecurityInfo { get { throw ADP.OleDb(); } set { } } + public string Provider { get { throw ADP.OleDb(); } set { } } + public override void Clear () => throw ADP.OleDb(); + public override Boolean ContainsKey (String keyword) => throw ADP.OleDb(); + protected override void GetProperties (Hashtable propertyDescriptors) => throw ADP.OleDb(); + public override Boolean Remove (String keyword) => throw ADP.OleDb(); + public Boolean TryGetValue (String keyword, Object value) => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbDataAdapter : System.Data.Common.DbDataAdapter, System.Data.IDataAdapter, System.Data.IDbDataAdapter, System.ICloneable + { + public new System.Data.OleDb.OleDbCommand DeleteCommand { get { throw ADP.OleDb(); } set { } } + public new System.Data.OleDb.OleDbCommand InsertCommand { get { throw ADP.OleDb(); } set { } } + public new System.Data.OleDb.OleDbCommand SelectCommand { get { throw ADP.OleDb(); } set { } } + System.Data.IDbCommand System.Data.IDbDataAdapter.DeleteCommand { get { throw ADP.OleDb(); } set { } } + System.Data.IDbCommand System.Data.IDbDataAdapter.InsertCommand { get { throw ADP.OleDb(); } set { } } + System.Data.IDbCommand System.Data.IDbDataAdapter.SelectCommand { get { throw ADP.OleDb(); } set { } } + System.Data.IDbCommand System.Data.IDbDataAdapter.UpdateCommand { get { throw ADP.OleDb(); } set { } } + public new System.Data.OleDb.OleDbCommand UpdateCommand { get { throw ADP.OleDb(); } set { } } + public OleDbDataAdapter() { } + public OleDbDataAdapter (OleDbCommand selectCommand) => throw ADP.OleDb(); + public OleDbDataAdapter (String selectCommandText, OleDbConnection selectConnection) => throw ADP.OleDb(); + public OleDbDataAdapter (String selectCommandText, String selectConnectionString) => throw ADP.OleDb(); + protected override RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) => throw ADP.OleDb(); + protected override RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) => throw ADP.OleDb(); + public Int32 Fill (DataSet dataSet, Object ADODBRecordSet, String srcTable) => throw ADP.OleDb(); + public Int32 Fill (DataTable dataTable, Object ADODBRecordSet) => throw ADP.OleDb(); + protected override void OnRowUpdated (RowUpdatedEventArgs value) => throw ADP.OleDb(); + protected override void OnRowUpdating (RowUpdatingEventArgs value) => throw ADP.OleDb(); + public event OleDbRowUpdatedEventHandler RowUpdated; + public event OleDbRowUpdatingEventHandler RowUpdating; + object System.ICloneable.Clone() => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbDataReader : System.Data.Common.DbDataReader + { + internal OleDbDataReader() { } + public override Int32 Depth => throw ADP.OleDb(); + public override Int32 FieldCount => throw ADP.OleDb(); + public override Boolean HasRows => throw ADP.OleDb(); + public override Boolean IsClosed => throw ADP.OleDb(); + public override Int32 RecordsAffected => throw ADP.OleDb(); + public override Int32 VisibleFieldCount => throw ADP.OleDb(); + public override void Close () => throw ADP.OleDb(); + public override Boolean GetBoolean (Int32 ordinal) => throw ADP.OleDb(); + public override Byte GetByte (Int32 ordinal) => throw ADP.OleDb(); + public override Int64 GetBytes (Int32 ordinal, Int64 dataIndex, Byte[] buffer, Int32 bufferIndex, Int32 length) => throw ADP.OleDb(); + public override Char GetChar (Int32 ordinal) => throw ADP.OleDb(); + public override Int64 GetChars (Int32 ordinal, Int64 dataIndex, Char[] buffer, Int32 bufferIndex, Int32 length) => throw ADP.OleDb(); + public new OleDbDataReader GetData (Int32 ordinal) => throw ADP.OleDb(); + protected override System.Data.Common.DbDataReader GetDbDataReader(int ordinal) => throw ADP.OleDb(); + public override String GetDataTypeName (Int32 index) => throw ADP.OleDb(); + public override DateTime GetDateTime (Int32 ordinal) => throw ADP.OleDb(); + public override Decimal GetDecimal (Int32 ordinal) => throw ADP.OleDb(); + public override Double GetDouble (Int32 ordinal) => throw ADP.OleDb(); + public override IEnumerator GetEnumerator () => throw ADP.OleDb(); + public override Type GetFieldType (Int32 index) => throw ADP.OleDb(); + public override Single GetFloat (Int32 ordinal) => throw ADP.OleDb(); + public override Guid GetGuid (Int32 ordinal) => throw ADP.OleDb(); + public override Int16 GetInt16 (Int32 ordinal) => throw ADP.OleDb(); + public override Int32 GetInt32 (Int32 ordinal) => throw ADP.OleDb(); + public override Int64 GetInt64 (Int32 ordinal) => throw ADP.OleDb(); + public override String GetName (Int32 index) => throw ADP.OleDb(); + public override Int32 GetOrdinal (String name) => throw ADP.OleDb(); + public override DataTable GetSchemaTable () => throw ADP.OleDb(); + public override String GetString (Int32 ordinal) => throw ADP.OleDb(); + public TimeSpan GetTimeSpan(int ordinal) => throw ADP.OleDb(); + public override Object GetValue (Int32 ordinal) => throw ADP.OleDb(); + public override Int32 GetValues (Object[] values) => throw ADP.OleDb(); + public override Boolean IsDBNull (Int32 ordinal) => throw ADP.OleDb(); + public override Boolean NextResult () => throw ADP.OleDb(); + public override Boolean Read () => throw ADP.OleDb(); + public override object this[int index] => throw ADP.OleDb(); + public override object this[string name] => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbEnumerator + { + public DataTable GetElements () => throw ADP.OleDb(); + public static OleDbDataReader GetEnumerator (Type type) => throw ADP.OleDb(); + public static OleDbDataReader GetRootEnumerator () => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbError + { + internal OleDbError() { } + public String Message => throw ADP.OleDb(); + public Int32 NativeError=> throw ADP.OleDb(); + public String Source => throw ADP.OleDb(); + public String SQLState => throw ADP.OleDb(); + public override String ToString () => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbErrorCollection : System.Collections.ICollection, System.Collections.IEnumerable + { + internal OleDbErrorCollection() { } + public Int32 Count => throw ADP.OleDb(); + public void CopyTo (Array array, Int32 index) => throw ADP.OleDb(); + public void CopyTo (OleDbError[] array, Int32 index) => throw ADP.OleDb(); + public IEnumerator GetEnumerator () => throw ADP.OleDb(); + public System.Data.OleDb.OleDbError this[int index] => throw ADP.OleDb(); + bool System.Collections.ICollection.IsSynchronized => throw ADP.OleDb(); + object System.Collections.ICollection.SyncRoot => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbException : System.Data.Common.DbException + { + internal OleDbException() { } + public override int ErrorCode => throw ADP.OleDb(); + public OleDbErrorCollection Errors => throw ADP.OleDb(); + public override void GetObjectData (SerializationInfo si, StreamingContext context) => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbFactory : System.Data.Common.DbProviderFactory + { + internal OleDbFactory() { } + public static readonly System.Data.OleDb.OleDbFactory Instance; + public override System.Data.Common.DbCommand CreateCommand() => throw ADP.OleDb(); + public override System.Data.Common.DbCommandBuilder CreateCommandBuilder() => throw ADP.OleDb(); + public override System.Data.Common.DbConnection CreateConnection() => throw ADP.OleDb(); + public override System.Data.Common.DbConnectionStringBuilder CreateConnectionStringBuilder() => throw ADP.OleDb(); + public override System.Data.Common.DbDataAdapter CreateDataAdapter() => throw ADP.OleDb(); + public override System.Data.Common.DbParameter CreateParameter() => throw ADP.OleDb(); + public override System.Security.CodeAccessPermission CreatePermission(System.Security.Permissions.PermissionState state) => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbInfoMessageEventArgs : System.EventArgs + { + internal OleDbInfoMessageEventArgs() => throw ADP.OleDb(); + public Int32 ErrorCode => throw ADP.OleDb(); + public OleDbErrorCollection Errors => throw ADP.OleDb(); + public String Message => throw ADP.OleDb(); + public String Source => throw ADP.OleDb(); + public override String ToString () => throw ADP.OleDb(); + } + + public delegate void OleDbInfoMessageEventHandler(object sender, OleDbInfoMessageEventArgs e); + + [MonoTODO("OleDb is not implemented.")] + public enum OleDbLiteral + { + Binary_Literal = 1, + Catalog_Name = 2, + Catalog_Separator = 3, + Char_Literal = 4, + Column_Alias = 5, + Column_Name = 6, + Correlation_Name = 7, + Cube_Name = 21, + Cursor_Name = 8, + Dimension_Name = 22, + Escape_Percent_Prefix = 9, + Escape_Percent_Suffix = 29, + Escape_Underscore_Prefix = 10, + Escape_Underscore_Suffix = 30, + Hierarchy_Name = 23, + Index_Name = 11, + Invalid = 0, + Level_Name = 24, + Like_Percent = 12, + Like_Underscore = 13, + Member_Name = 25, + Procedure_Name = 14, + Property_Name = 26, + Quote_Prefix = 15, + Quote_Suffix = 28, + Schema_Name = 16, + Schema_Separator = 27, + Table_Name = 17, + Text_Command = 18, + User_Name = 19, + View_Name = 20, + } + + [MonoTODO("OleDb is not implemented.")] + public static partial class OleDbMetaDataCollectionNames + { + public static readonly string Catalogs; + public static readonly string Collations; + public static readonly string Columns; + public static readonly string Indexes; + public static readonly string ProcedureColumns; + public static readonly string ProcedureParameters; + public static readonly string Procedures; + public static readonly string Tables; + public static readonly string Views; + } + + [MonoTODO("OleDb is not implemented.")] + public static partial class OleDbMetaDataColumnNames + { + public static readonly string BooleanFalseLiteral; + public static readonly string BooleanTrueLiteral; + public static readonly string DateTimeDigits; + public static readonly string NativeDataType; + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbParameter : System.Data.Common.DbParameter, System.Data.IDataParameter, System.Data.IDbDataParameter, System.ICloneable + { + public override DbType DbType { get { throw ADP.OleDb(); } set { } } + public override ParameterDirection Direction { get { throw ADP.OleDb(); } set { } } + public override Boolean IsNullable { get { throw ADP.OleDb(); } set { } } + public int Offset { get { throw ADP.OleDb(); } set { } } + public System.Data.OleDb.OleDbType OleDbType { get { throw ADP.OleDb(); } set { } } + public override String ParameterName { get { throw ADP.OleDb(); } set { } } + public new Byte Precision { get { throw ADP.OleDb(); } set { } } + public new Byte Scale { get { throw ADP.OleDb(); } set { } } + public override Int32 Size { get { throw ADP.OleDb(); } set { } } + public override String SourceColumn { get { throw ADP.OleDb(); } set { } } + public override Boolean SourceColumnNullMapping { get { throw ADP.OleDb(); } set { } } + public override DataRowVersion SourceVersion { get { throw ADP.OleDb(); } set { } } + public override Object Value { get { throw ADP.OleDb(); } set { } } + public OleDbParameter() { } + public OleDbParameter (String name, OleDbType dataType) => throw ADP.OleDb(); + public OleDbParameter (String name, OleDbType dataType, Int32 size) => throw ADP.OleDb(); + public OleDbParameter (String parameterName, OleDbType dbType, Int32 size, ParameterDirection direction, Boolean isNullable, Byte precision, Byte scale, String srcColumn, DataRowVersion srcVersion, Object value) => throw ADP.OleDb(); + public OleDbParameter (String parameterName, OleDbType dbType, Int32 size, ParameterDirection direction, Byte precision, Byte scale, String sourceColumn, DataRowVersion sourceVersion, Boolean sourceColumnNullMapping, Object value) => throw ADP.OleDb(); + public OleDbParameter (String name, OleDbType dataType, Int32 size, String srcColumn) => throw ADP.OleDb(); + public OleDbParameter (String name, Object value) => throw ADP.OleDb(); + public override void ResetDbType () => throw ADP.OleDb(); + public override String ToString () => throw ADP.OleDb(); + object System.ICloneable.Clone() => throw ADP.OleDb(); + public void ResetOleDbType() => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public class OleDbParameterCollection : System.Data.Common.DbParameterCollection + { + internal OleDbParameterCollection() { } + public OleDbParameter Add (OleDbParameter value) => throw ADP.OleDb(); + public override Int32 Add (Object value) => throw ADP.OleDb(); + public OleDbParameter Add (String parameterName, OleDbType oleDbType) => throw ADP.OleDb(); + public OleDbParameter Add (String parameterName, OleDbType oleDbType, Int32 size) => throw ADP.OleDb(); + public OleDbParameter Add (String parameterName, OleDbType oleDbType, Int32 size, String sourceColumn) => throw ADP.OleDb(); + public OleDbParameter Add (String parameterName, Object value) => throw ADP.OleDb(); + public override void AddRange (Array values) => throw ADP.OleDb(); + public void AddRange (OleDbParameter[] values) => throw ADP.OleDb(); + public OleDbParameter AddWithValue (String parameterName, Object value) => throw ADP.OleDb(); + public override void Clear () => throw ADP.OleDb(); + public Boolean Contains (OleDbParameter value) => throw ADP.OleDb(); + public override Boolean Contains (Object value) => throw ADP.OleDb(); + public override Boolean Contains (String value) => throw ADP.OleDb(); + public override void CopyTo (Array array, Int32 index) => throw ADP.OleDb(); + public void CopyTo (OleDbParameter[] array, Int32 index) => throw ADP.OleDb(); + public override IEnumerator GetEnumerator () => throw ADP.OleDb(); + protected override DbParameter GetParameter (Int32 index) => throw ADP.OleDb(); + protected override DbParameter GetParameter (String parameterName) => throw ADP.OleDb(); + public Int32 IndexOf (OleDbParameter value) => throw ADP.OleDb(); + public override Int32 IndexOf (Object value) => throw ADP.OleDb(); + public override Int32 IndexOf (String parameterName) => throw ADP.OleDb(); + public void Insert (Int32 index, OleDbParameter value) => throw ADP.OleDb(); + public override void Insert (Int32 index, Object value) => throw ADP.OleDb(); + public void Remove (OleDbParameter value) => throw ADP.OleDb(); + public override void Remove (Object value) => throw ADP.OleDb(); + public override void RemoveAt (Int32 index) => throw ADP.OleDb(); + public override void RemoveAt (String parameterName) => throw ADP.OleDb(); + protected override void SetParameter (Int32 index, DbParameter value) => throw ADP.OleDb(); + protected override void SetParameter (String parameterName, DbParameter value) => throw ADP.OleDb(); + public override int Count => throw ADP.OleDb(); + public override bool IsFixedSize => throw ADP.OleDb(); + public override bool IsReadOnly => throw ADP.OleDb(); + public override bool IsSynchronized => throw ADP.OleDb(); + public new System.Data.OleDb.OleDbParameter this[int index] { get { throw ADP.OleDb(); } set { } } + public new System.Data.OleDb.OleDbParameter this[string parameterName] { get { throw ADP.OleDb(); } set { } } + public override object SyncRoot => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbRowUpdatedEventArgs : System.Data.Common.RowUpdatedEventArgs + { + public new OleDbCommand Command => throw ADP.OleDb(); + public OleDbRowUpdatedEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) + : base (default(System.Data.DataRow), default(System.Data.IDbCommand), default(System.Data.StatementType), default(System.Data.Common.DataTableMapping)) + => throw ADP.OleDb(); + } + + public delegate void OleDbRowUpdatedEventHandler(object sender, OleDbRowUpdatedEventArgs e); + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbRowUpdatingEventArgs : System.Data.Common.RowUpdatingEventArgs + { + protected override IDbCommand BaseCommand { get { throw ADP.OleDb(); } set { } } + public new OleDbCommand Command { get { throw ADP.OleDb(); } set { } } + public OleDbRowUpdatingEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) + : base (default(System.Data.DataRow), default(System.Data.IDbCommand), default(System.Data.StatementType), default(System.Data.Common.DataTableMapping)) + => throw ADP.OleDb(); + } + + public delegate void OleDbRowUpdatingEventHandler(object sender, OleDbRowUpdatingEventArgs e); + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbSchemaGuid + { + public static readonly System.Guid Assertions; + public static readonly System.Guid Catalogs; + public static readonly System.Guid Character_Sets; + public static readonly System.Guid Check_Constraints; + public static readonly System.Guid Check_Constraints_By_Table; + public static readonly System.Guid Collations; + public static readonly System.Guid Column_Domain_Usage; + public static readonly System.Guid Column_Privileges; + public static readonly System.Guid Columns; + public static readonly System.Guid Constraint_Column_Usage; + public static readonly System.Guid Constraint_Table_Usage; + public static readonly System.Guid DbInfoKeywords; + public static readonly System.Guid DbInfoLiterals; + public static readonly System.Guid Foreign_Keys; + public static readonly System.Guid Indexes; + public static readonly System.Guid Key_Column_Usage; + public static readonly System.Guid Primary_Keys; + public static readonly System.Guid Procedure_Columns; + public static readonly System.Guid Procedure_Parameters; + public static readonly System.Guid Procedures; + public static readonly System.Guid Provider_Types; + public static readonly System.Guid Referential_Constraints; + public static readonly System.Guid SchemaGuids; + public static readonly System.Guid Schemata; + public static readonly System.Guid Sql_Languages; + public static readonly System.Guid Statistics; + public static readonly System.Guid Table_Constraints; + public static readonly System.Guid Table_Privileges; + public static readonly System.Guid Table_Statistics; + public static readonly System.Guid Tables; + public static readonly System.Guid Tables_Info; + public static readonly System.Guid Translations; + public static readonly System.Guid Trustee; + public static readonly System.Guid Usage_Privileges; + public static readonly System.Guid View_Column_Usage; + public static readonly System.Guid View_Table_Usage; + public static readonly System.Guid Views; + } + + [MonoTODO("OleDb is not implemented.")] + public sealed partial class OleDbTransaction : System.Data.Common.DbTransaction + { + internal OleDbTransaction() { } + public new System.Data.OleDb.OleDbConnection Connection => throw ADP.OleDb(); + protected override System.Data.Common.DbConnection DbConnection => throw ADP.OleDb(); + public override System.Data.IsolationLevel IsolationLevel => throw ADP.OleDb(); + public OleDbTransaction Begin () => throw ADP.OleDb(); + public OleDbTransaction Begin (IsolationLevel isolevel) => throw ADP.OleDb(); + public override void Commit () => throw ADP.OleDb(); + protected override void Dispose (Boolean disposing) => throw ADP.OleDb(); + public override void Rollback () => throw ADP.OleDb(); + } + + [MonoTODO("OleDb is not implemented.")] + internal sealed class OleDbConnectionString : DbConnectionOptions + { + internal OleDbConnectionString(string connectionString, bool validate) : base(connectionString, null) { } + } +} +#pragma warning restore 108, 114, 67, 3006 \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/SR.cs b/mcs/class/System.Data/corefx/SR.cs index 8afaea652e3..f1f2fb30041 100644 --- a/mcs/class/System.Data/corefx/SR.cs +++ b/mcs/class/System.Data/corefx/SR.cs @@ -22,7 +22,6 @@ partial class SR public const string ADP_InvalidEnumerationValue = "The {0} enumeration value, {1}, is invalid."; public const string ADP_InvalidKey = "Invalid keyword, contain one or more of 'no characters', 'control characters', 'leading or trailing whitespace' or 'leading semicolons'."; public const string ADP_InvalidValue = "The value contains embedded nulls (\\\\u0000)."; - public const string ADP_InvalidXMLBadVersion = "Invalid Xml; can only parse elements of version one."; public const string Xml_SimpleTypeNotSupported = "DataSet doesn't support 'union' or 'list' as simpleType."; public const string Xml_MissingAttribute = "Invalid {0} syntax: missing required '{1}' attribute."; public const string Xml_ValueOutOfRange = "Value '{1}' is invalid for attribute '{0}'."; @@ -357,17 +356,6 @@ partial class SR public const string DataDom_NotSupport_GetElementById = "GetElementById() is not supported on DataDocument."; public const string DataDom_NotSupport_EntRef = "Cannot create entity references on DataDocument."; public const string DataDom_NotSupport_Clear = "Clear function on DateSet and DataTable is not supported on XmlDataDocument."; - public const string ConfigProviderNotFound = "Unable to find the requested .Net Framework Data Provider. It may not be installed."; - public const string ConfigProviderInvalid = "The requested .Net Framework Data Provider's implementation does not have an Instance field of a System.Data.Common.DbProviderFactory derived type."; - public const string ConfigProviderNotInstalled = "Failed to find or load the registered .Net Framework Data Provider."; - public const string ConfigProviderMissing = "The missing .Net Framework Data Provider's assembly qualified name is required."; - public const string ConfigBaseElementsOnly = "Only elements allowed."; - public const string ConfigBaseNoChildNodes = "Child nodes not allowed."; - public const string ConfigUnrecognizedAttributes = "Unrecognized attribute '{0}'."; - public const string ConfigUnrecognizedElement = "Unrecognized element."; - public const string ConfigSectionsUnique = "The '{0}' section can only appear once per config file."; - public const string ConfigRequiredAttributeMissing = "Required attribute '{0}' not found."; - public const string ConfigRequiredAttributeEmpty = "Required attribute '{0}' cannot be empty."; public const string ADP_EmptyArray = "Expecting non-empty array for '{0}' parameter."; public const string SQL_WrongType = "Expecting argument of type {1}, but received type {0}."; public const string ADP_InvalidConnectionOptionValue = "Invalid value for key '{0}'."; @@ -389,8 +377,6 @@ partial class SR public const string ADP_MissingTableSchema = "Missing the '{0}' DataTable for the '{1}' SourceTable."; public const string ADP_InvalidSourceTable = "SourceTable is required to be a non-empty string"; public const string ADP_MissingTableMapping = "Missing SourceTable mapping: '{0}'"; - public const string ADP_ConnectionRequired = "{0}: Connection property has not been initialized."; - public const string ADP_OpenConnectionRequired = "{0} requires an open and available Connection. {1}"; public const string ADP_ConnectionRequired_Insert = "Update requires the InsertCommand to have a connection object. The Connection property of the InsertCommand has not been initialized."; public const string ADP_ConnectionRequired_Update = "Update requires the UpdateCommand to have a connection object. The Connection property of the UpdateCommand has not been initialized."; public const string ADP_ConnectionRequired_Delete = "Update requires the DeleteCommand to have a connection object. The Connection property of the DeleteCommand has not been initialized."; @@ -464,8 +450,6 @@ partial class SR public const string SqlMisc_InvalidOpStreamNonReadable = "Invalid attempt to call {0} when the stream non-readable."; public const string SqlMisc_InvalidOpStreamNonSeekable = "Invalid attempt to call {0} when the stream is non-seekable."; public const string ADP_DBConcurrencyExceptionMessage = "DB concurrency violation."; - public const string ADP_OperationAborted = "Operation aborted."; - public const string ADP_OperationAbortedExceptionMessage = "Operation aborted due to an exception (see InnerException for details)."; public const string ADP_InvalidMaxRecords = "The MaxRecords value of {0} is invalid; the value must be >= 0."; public const string ADP_CollectionIndexInt32 = "Invalid index {0} for this {1} with Count={2}."; public const string ADP_MissingTableMappingDestination = "Missing TableMapping when TableMapping.DataSetTable='{0}'."; @@ -474,4 +458,350 @@ partial class SR public const string DataColumns_RemoveExpression = "Cannot remove this column, because it is part of an expression: {0} = {1}."; public const string DataRow_RowInsertTwice = "The rowOrder value={0} has been found twice for table named '{1}'."; public const string Xml_ElementTypeNotFound = "Cannot find ElementType name='{0}'."; + public const string ADP_ConnectionAlreadyOpen = "The connection was not closed. {0}"; + public const string ADP_InternalConnectionError = "Internal DbConnection Error: {0}"; + public const string ADP_InvalidOffsetValue = "Invalid parameter Offset value '{0}'. The value must be greater than or equal to 0."; + public const string ADP_TransactionPresent = "Connection currently has transaction enlisted. Finish current transaction and retry."; + public const string ADP_LocalTransactionPresent = "Cannot enlist in the transaction because a local transaction is in progress on the connection. Finish local transaction and retry."; + public const string ADP_NoConnectionString = "The ConnectionString property has not been initialized."; + public const string ADP_OpenConnectionPropertySet = "Not allowed to change the '{0}' property. {1}"; + public const string ADP_PendingAsyncOperation = "Can not start another operation while there is an asynchronous operation pending."; + public const string ADP_PooledOpenTimeout = "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached."; + public const string ADP_NonPooledOpenTimeout = "Timeout attempting to open the connection. The time period elapsed prior to attempting to open the connection has been exceeded. This may have occurred because of too many simultaneous non-pooled connection attempts."; + public const string ADP_SingleValuedProperty = "The only acceptable value for the property '{0}' is '{1}'."; + public const string ADP_DoubleValuedProperty = "The acceptable values for the property '{0}' are '{1}' or '{2}'."; + public const string ADP_InvalidPrefixSuffix = "Specified QuotePrefix and QuoteSuffix values do not match."; + public const string Arg_ArrayPlusOffTooSmall = "Destination array is not long enough to copy all the items in the collection. Check array index and length."; + public const string Arg_RankMultiDimNotSupported = "Only single dimensional arrays are supported for the requested action."; + public const string Arg_RemoveArgNotFound = "Cannot remove the specified item because it was not found in the specified Collection."; + public const string ArgumentOutOfRange_NeedNonNegNum = "Non-negative number required."; + public const string ADP_DeriveParametersNotSupported = "{0} DeriveParameters only supports CommandType.StoredProcedure, not CommandType.{1}."; + public const string ADP_NoStoredProcedureExists = "The stored procedure '{0}' doesn't exist."; + public const string ADP_MissingConnectionOptionValue = "Use of key '{0}' requires the key '{1}' to be present."; + public const string ADP_InvalidConnectionOptionValueLength = "The value's length for key '{0}' exceeds it's limit of '{1}'."; + public const string SQL_SqlCommandCommandText = "SqlCommand.DeriveParameters failed because the SqlCommand.CommandText property value is an invalid multipart name"; + public const string SQL_BatchedUpdatesNotAvailableOnContextConnection = "Batching updates is not supported on the context connection."; + public const string SQL_BulkCopyDestinationTableName = "SqlBulkCopy.WriteToServer failed because the SqlBulkCopy.DestinationTableName is an invalid multipart name"; + public const string SQL_TDSParserTableName = "Processing of results from SQL Server failed because of an invalid multipart name"; + public const string SQL_TypeName = "SqlParameter.TypeName is an invalid multipart name"; + public const string SQLMSF_FailoverPartnerNotSupported = "Connecting to a mirrored SQL Server instance using the MultiSubnetFailover connection option is not supported."; + public const string SQL_NotSupportedEnumerationValue = "The {0} enumeration value, {1}, is not supported by the .Net Framework SqlClient Data Provider."; + public const string ADP_CommandTextRequired = "{0}: CommandText property has not been initialized"; + public const string ADP_ConnectionRequired = "{0}: Connection property has not been initialized."; + public const string ADP_OpenConnectionRequired = "{0} requires an open and available Connection. {1}"; + public const string ADP_TransactionConnectionMismatch = "The transaction is either not associated with the current connection or has been completed."; + public const string ADP_TransactionRequired = "{0} requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized."; + public const string ADP_OpenReaderExists = "There is already an open DataReader associated with this Command which must be closed first."; + public const string ADP_CalledTwice = "The method '{0}' cannot be called more than once for the same execution."; + public const string ADP_InvalidCommandTimeout = "Invalid CommandTimeout value {0}; the value must be >= 0."; + public const string ADP_UninitializedParameterSize = "{1}[{0}]: the Size property has an invalid size of 0."; + public const string ADP_PrepareParameterType = "{0}.Prepare method requires all parameters to have an explicitly set type."; + public const string ADP_PrepareParameterSize = "{0}.Prepare method requires all variable length parameters to have an explicitly set non-zero Size."; + public const string ADP_PrepareParameterScale = "{0}.Prepare method requires parameters of type '{1}' have an explicitly set Precision and Scale."; + public const string ADP_MismatchedAsyncResult = "Mismatched end method call for asyncResult. Expected call to {0} but {1} was called instead."; + public const string ADP_ClosedConnectionError = "Invalid operation. The connection is closed."; + public const string ADP_ConnectionIsDisabled = "The connection has been disabled."; + public const string ADP_EmptyDatabaseName = "Database cannot be null, the empty string, or string of only whitespace."; + public const string ADP_NonSequentialColumnAccess = "Invalid attempt to read from column ordinal '{0}'. With CommandBehavior.SequentialAccess, you may only read from column ordinal '{1}' or greater."; + public const string ADP_InvalidDataType = "The parameter data type of {0} is invalid."; + public const string ADP_UnknownDataType = "No mapping exists from object type {0} to a known managed provider native type."; + public const string ADP_DbTypeNotSupported = "No mapping exists from DbType {0} to a known {1}."; + public const string ADP_VersionDoesNotSupportDataType = "The version of SQL Server in use does not support datatype '{0}'."; + public const string ADP_ParameterValueOutOfRange = "Parameter value '{0}' is out of range."; + public const string ADP_BadParameterName = "Specified parameter name '{0}' is not valid."; + public const string ADP_InvalidSizeValue = "Invalid parameter Size value '{0}'. The value must be greater than or equal to 0."; + public const string ADP_NegativeParameter = "Invalid value for argument '{0}'. The value must be greater than or equal to 0."; + public const string ADP_InvalidMetaDataValue = "Invalid value for this metadata."; + public const string ADP_ParameterConversionFailed = "Failed to convert parameter value from a {0} to a {1}."; + public const string ADP_ParallelTransactionsNotSupported = "{0} does not support parallel transactions."; + public const string ADP_TransactionZombied = "This {0} has completed; it is no longer usable."; + public const string ADP_InvalidDataLength2 = "Specified length '{0}' is out of range."; + public const string ADP_NonSeqByteAccess = "Invalid {2} attempt at dataIndex '{0}'. With CommandBehavior.SequentialAccess, you may only read from dataIndex '{1}' or greater."; + public const string ADP_InvalidMinMaxPoolSizeValues = "Invalid min or max pool size values, min pool size cannot be greater than the max pool size."; + public const string SQL_InvalidPacketSizeValue = "Invalid 'Packet Size'. The value must be an integer >= 512 and <= 32768."; + public const string SQL_NullEmptyTransactionName = "Invalid transaction or invalid name for a point at which to save within the transaction."; + public const string SQL_UserInstanceFailoverNotCompatible = "User Instance and Failover are not compatible options. Please choose only one of the two in the connection string."; + public const string SQL_EncryptionNotSupportedByClient = "The instance of SQL Server you attempted to connect to requires encryption but this machine does not support it."; + public const string SQL_EncryptionNotSupportedByServer = "The instance of SQL Server you attempted to connect to does not support encryption."; + public const string SQL_InvalidSQLServerVersionUnknown = "Unsupported SQL Server version. The .Net Framework SqlClient Data Provider can only be used with SQL Server versions 7.0 and later."; + public const string SQL_CannotModifyPropertyAsyncOperationInProgress = "{0} cannot be changed while async operation is in progress."; + public const string SQL_InstanceFailure = "Instance failure."; + public const string SQL_InvalidPartnerConfiguration = "Server {0}, database {1} is not configured for database mirroring."; + public const string SQL_MarsUnsupportedOnConnection = "The connection does not support MultipleActiveResultSets."; + public const string SQL_NonLocalSSEInstance = "SSE Instance re-direction is not supported for non-local user instances."; + public const string SQL_PendingBeginXXXExists = "The command execution cannot proceed due to a pending asynchronous operation already in progress."; + public const string SQL_NonXmlResult = "Invalid command sent to ExecuteXmlReader. The command must return an Xml result."; + public const string SQL_InvalidParameterTypeNameFormat = "Invalid 3 part name format for TypeName."; + public const string SQL_InvalidParameterNameLength = "The length of the parameter '{0}' exceeds the limit of 128 characters."; + public const string SQL_PrecisionValueOutOfRange = "Precision value '{0}' is either less than 0 or greater than the maximum allowed precision of 38."; + public const string SQL_ScaleValueOutOfRange = "Scale value '{0}' is either less than 0 or greater than the maximum allowed scale of 38."; + public const string SQL_TimeScaleValueOutOfRange = "Scale value '{0}' is either less than 0 or greater than the maximum allowed scale of 7."; + public const string SQL_ParameterInvalidVariant = "Parameter '{0}' exceeds the size limit for the sql_variant datatype."; + public const string SQL_ParameterTypeNameRequired = "The {0} type parameter '{1}' must have a valid type name."; + public const string SQL_InvalidInternalPacketSize = "Invalid internal packet size:"; + public const string SQL_InvalidTDSVersion = "The SQL Server instance returned an invalid or unsupported protocol version during login negotiation."; + public const string SQL_InvalidTDSPacketSize = "Invalid Packet Size."; + public const string SQL_ParsingError = "Internal connection fatal error."; + public const string SQL_ConnectionLockedForBcpEvent = "The connection cannot be used because there is an ongoing operation that must be finished."; + public const string SQL_SNIPacketAllocationFailure = "Memory allocation for internal connection failed."; + public const string SQL_SmallDateTimeOverflow = "SqlDbType.SmallDateTime overflow. Value '{0}' is out of range. Must be between 1/1/1900 12:00:00 AM and 6/6/2079 11:59:59 PM."; + public const string SQL_TimeOverflow = "SqlDbType.Time overflow. Value '{0}' is out of range. Must be between 00:00:00.0000000 and 23:59:59.9999999."; + public const string SQL_MoneyOverflow = "SqlDbType.SmallMoney overflow. Value '{0}' is out of range. Must be between -214,748.3648 and 214,748.3647."; + public const string SQL_CultureIdError = "The Collation specified by SQL Server is not supported."; + public const string SQL_OperationCancelled = "Operation cancelled by user."; + public const string SQL_SevereError = "A severe error occurred on the current command. The results, if any, should be discarded."; + public const string SQL_SSPIGenerateError = "Failed to generate SSPI context."; + public const string SQL_KerberosTicketMissingError = "Cannot access Kerberos ticket. Ensure Kerberos has been initialized with 'kinit'."; + public const string SQL_SqlServerBrowserNotAccessible = "Cannot connect to SQL Server Browser. Ensure SQL Server Browser has been started."; + public const string SQL_InvalidSSPIPacketSize = "Invalid SSPI packet size."; + public const string SQL_SSPIInitializeError = "Cannot initialize SSPI package."; + public const string SQL_Timeout = "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."; + public const string SQL_Timeout_PreLogin_Begin = "Connection Timeout Expired. The timeout period elapsed at the start of the pre-login phase. This could be because of insufficient time provided for connection timeout."; + public const string SQL_Timeout_PreLogin_InitializeConnection = "Connection Timeout Expired. The timeout period elapsed while attempting to create and initialize a socket to the server. This could be either because the server was unreachable or unable to respond back in time."; + public const string SQL_Timeout_PreLogin_SendHandshake = "Connection Timeout Expired. The timeout period elapsed while making a pre-login handshake request. This could be because the server was unable to respond back in time."; + public const string SQL_Timeout_PreLogin_ConsumeHandshake = "Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time."; + public const string SQL_Timeout_Login_Begin = "Connection Timeout Expired. The timeout period elapsed at the start of the login phase. This could be because of insufficient time provided for connection timeout."; + public const string SQL_Timeout_Login_ProcessConnectionAuth = "Connection Timeout Expired. The timeout period elapsed while attempting to authenticate the login. This could be because the server failed to authenticate the user or the server was unable to respond back in time."; + public const string SQL_Timeout_PostLogin = "Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections."; + public const string SQL_Timeout_FailoverInfo = "This failure occurred while attempting to connect to the {0} server."; + public const string SQL_Timeout_RoutingDestinationInfo = "This failure occurred while attempting to connect to the routing destination. The duration spent while attempting to connect to the original server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; [Post-Login] complete={4}; "; + public const string SQL_Duration_PreLogin_Begin = "The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0};"; + public const string SQL_Duration_PreLoginHandshake = "The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; "; + public const string SQL_Duration_Login_Begin = "The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; "; + public const string SQL_Duration_Login_ProcessConnectionAuth = "The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; "; + public const string SQL_Duration_PostLogin = "The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; [Post-Login] complete={4}; "; + public const string SQL_UserInstanceFailure = "A user instance was requested in the connection string but the server specified does not support this option."; + public const string SQL_InvalidRead = "Invalid attempt to read when no data is present."; + public const string SQL_NonBlobColumn = "Invalid attempt to GetBytes on column '{0}'. The GetBytes function can only be used on columns of type Text, NText, or Image."; + public const string SQL_NonCharColumn = "Invalid attempt to GetChars on column '{0}'. The GetChars function can only be used on columns of type Text, NText, Xml, VarChar or NVarChar."; + public const string SQL_StreamNotSupportOnColumnType = "Invalid attempt to GetStream on column '{0}'. The GetStream function can only be used on columns of type Binary, Image, Udt or VarBinary."; + public const string SQL_TextReaderNotSupportOnColumnType = "Invalid attempt to GetTextReader on column '{0}'. The GetTextReader function can only be used on columns of type Char, NChar, NText, NVarChar, Text or VarChar."; + public const string SQL_XmlReaderNotSupportOnColumnType = "Invalid attempt to GetXmlReader on column '{0}'. The GetXmlReader function can only be used on columns of type Xml."; + public const string SqlDelegatedTransaction_PromotionFailed = "Failure while attempting to promote transaction."; + public const string SQL_BulkLoadMappingInaccessible = "The mapped collection is in use and cannot be accessed at this time;"; + public const string SQL_BulkLoadMappingsNamesOrOrdinalsOnly = "Mappings must be either all name or all ordinal based."; + public const string SQL_BulkLoadCannotConvertValue = "The given value of type {0} from the data source cannot be converted to type {1} of the specified target column."; + public const string SQL_BulkLoadNonMatchingColumnMapping = "The given ColumnMapping does not match up with any column in the source or destination."; + public const string SQL_BulkLoadNonMatchingColumnName = "The given ColumnName '{0}' does not match up with any column in data source."; + public const string SQL_BulkLoadStringTooLong = "String or binary data would be truncated."; + public const string SQL_BulkLoadInvalidTimeout = "Timeout Value '{0}' is less than 0."; + public const string SQL_BulkLoadInvalidVariantValue = "Value cannot be converted to SqlVariant."; + public const string SQL_BulkLoadExistingTransaction = "Unexpected existing transaction."; + public const string SQL_BulkLoadNoCollation = "Failed to obtain column collation information for the destination table. If the table is not in the current database the name must be qualified using the database name (e.g. [mydb]..[mytable](e.g. [mydb]..[mytable]); this also applies to temporary-tables (e.g. #mytable would be specified as tempdb..#mytable)."; + public const string SQL_BulkLoadConflictingTransactionOption = "Must not specify SqlBulkCopyOption.UseInternalTransaction and pass an external Transaction at the same time."; + public const string SQL_BulkLoadInvalidOperationInsideEvent = "Function must not be called during event."; + public const string SQL_BulkLoadMissingDestinationTable = "The DestinationTableName property must be set before calling this method."; + public const string SQL_BulkLoadInvalidDestinationTable = "Cannot access destination table '{0}'."; + public const string SQL_BulkLoadNotAllowDBNull = "Column '{0}' does not allow DBNull.Value."; + public const string Sql_BulkLoadLcidMismatch = "The locale id '{0}' of the source column '{1}' and the locale id '{2}' of the destination column '{3}' do not match."; + public const string SQL_BulkLoadPendingOperation = "Attempt to invoke bulk copy on an object that has a pending operation."; + public const string SQL_CannotGetDTCAddress = "Unable to get the address of the distributed transaction coordinator for the server, from the server. Is DTC enabled on the server?"; + public const string SQL_ConnectionDoomed = "The requested operation cannot be completed because the connection has been broken."; + public const string SQL_OpenResultCountExceeded = "Open result count exceeded."; + public const string SQL_StreamWriteNotSupported = "The Stream does not support writing."; + public const string SQL_StreamReadNotSupported = "The Stream does not support reading."; + public const string SQL_StreamSeekNotSupported = "The Stream does not support seeking."; + public const string SQL_ExClientConnectionId = "ClientConnectionId:{0}"; + public const string SQL_ExErrorNumberStateClass = "Error Number:{0},State:{1},Class:{2}"; + public const string SQL_ExOriginalClientConnectionId = "ClientConnectionId before routing:{0}"; + public const string SQL_ExRoutingDestination = "Routing Destination:{0}"; + public const string SQL_UnsupportedSysTxVersion = "The currently loaded System.Transactions.dll does not support Global Transactions."; + public const string SqlMisc_StreamErrorMessage = "An error occurred while reading."; + public const string SqlMisc_TruncationMaxDataMessage = "Data returned is larger than 2Gb in size. Use SequentialAccess command behavior in order to get all of the data."; + public const string SqlMisc_SubclassMustOverride = "Subclass did not override a required method."; + public const string Sql_InternalError = "Internal Error"; + public const string ADP_OperationAborted = "Operation aborted."; + public const string ADP_OperationAbortedExceptionMessage = "Operation aborted due to an exception (see InnerException for details)."; + public const string ADP_TransactionCompletedButNotDisposed = "The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements."; + public const string SqlParameter_UnsupportedTVPOutputParameter = "ParameterDirection '{0}' specified for parameter '{1}' is not supported. Table-valued parameters only support ParameterDirection.Input."; + public const string SqlParameter_DBNullNotSupportedForTVP = "DBNull value for parameter '{0}' is not supported. Table-valued parameters cannot be DBNull."; + public const string SqlParameter_UnexpectedTypeNameForNonStruct = "TypeName specified for parameter '{0}'. TypeName must only be set for Structured parameters."; + public const string NullSchemaTableDataTypeNotSupported = "DateType column for field '{0}' in schema table is null. DataType must be non-null."; + public const string InvalidSchemaTableOrdinals = "Invalid column ordinals in schema table. ColumnOrdinals, if present, must not have duplicates or gaps."; + public const string SQL_EnumeratedRecordMetaDataChanged = "Metadata for field '{0}' of record '{1}' did not match the original record's metadata."; + public const string SQL_EnumeratedRecordFieldCountChanged = "Number of fields in record '{0}' does not match the number in the original record."; + public const string GT_Disabled = "Global Transactions are not enabled for this Azure SQL Database. Please contact Azure SQL Database support for assistance."; + public const string SQL_UnknownSysTxIsolationLevel = "Unrecognized System.Transactions.IsolationLevel enumeration value: {0}."; + public const string SQLNotify_AlreadyHasCommand = "This SqlCommand object is already associated with another SqlDependency object."; + public const string SqlDependency_DatabaseBrokerDisabled = "The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported. Please enable the Service Broker for this database if you wish to use notifications."; + public const string SqlDependency_DefaultOptionsButNoStart = "When using SqlDependency without providing an options value, SqlDependency.Start() must be called prior to execution of a command added to the SqlDependency instance."; + public const string SqlDependency_NoMatchingServerStart = "When using SqlDependency without providing an options value, SqlDependency.Start() must be called for each server that is being executed against."; + public const string SqlDependency_NoMatchingServerDatabaseStart = "SqlDependency.Start has been called for the server the command is executing against more than once, but there is no matching server/user/database Start() call for current command."; + public const string SqlDependency_EventNoDuplicate = "SqlDependency.OnChange does not support multiple event registrations for the same delegate."; + public const string SqlDependency_IdMismatch = "No SqlDependency exists for the key."; + public const string SqlDependency_InvalidTimeout = "Timeout specified is invalid. Timeout cannot be < 0."; + public const string SqlDependency_DuplicateStart = "SqlDependency does not support calling Start() with different connection strings having the same server, user, and database in the same app domain."; + public const string SqlMetaData_InvalidSqlDbTypeForConstructorFormat = "The dbType {0} is invalid for this constructor."; + public const string SqlMetaData_NameTooLong = "The name is too long."; + public const string SqlMetaData_SpecifyBothSortOrderAndOrdinal = "The sort order and ordinal must either both be specified, or neither should be specified (SortOrder.Unspecified and -1). The values given were: order = {0}, ordinal = {1}."; + public const string SqlProvider_InvalidDataColumnType = "The type of column '{0}' is not supported. The type is '{1}'"; + public const string SqlProvider_NotEnoughColumnsInStructuredType = "There are not enough fields in the Structured type. Structured types must have at least one field."; + public const string SqlProvider_DuplicateSortOrdinal = "The sort ordinal {0} was specified twice."; + public const string SqlProvider_MissingSortOrdinal = "The sort ordinal {0} was not specified."; + public const string SqlProvider_SortOrdinalGreaterThanFieldCount = "The sort ordinal {0} on field {1} exceeds the total number of fields."; + public const string IEnumerableOfSqlDataRecordHasNoRows = "There are no records in the SqlDataRecord enumeration. To send a table-valued parameter with no rows, use a null reference for the value instead."; + public const string SNI_ERROR_1 = "I/O Error detected in read/write operation"; + public const string SNI_ERROR_2 = "Connection was terminated"; + public const string SNI_ERROR_3 = "Asynchronous operations not supported"; + public const string SNI_ERROR_5 = "Invalid parameter(s) found"; + public const string SNI_ERROR_6 = "Unsupported protocol specified"; + public const string SNI_ERROR_7 = "Invalid connection found when setting up new session protocol"; + public const string SNI_ERROR_8 = "Protocol not supported"; + public const string SNI_ERROR_9 = "Associating port with I/O completion mechanism failed"; + public const string SNI_ERROR_11 = "Timeout error"; + public const string SNI_ERROR_12 = "No server name supplied"; + public const string SNI_ERROR_13 = "TerminateListener() has been called"; + public const string SNI_ERROR_14 = "Win9x not supported"; + public const string SNI_ERROR_15 = "Function not supported"; + public const string SNI_ERROR_16 = "Shared-Memory heap error"; + public const string SNI_ERROR_17 = "Cannot find an ip/ipv6 type address to connect"; + public const string SNI_ERROR_18 = "Connection has been closed by peer"; + public const string SNI_ERROR_19 = "Physical connection is not usable"; + public const string SNI_ERROR_20 = "Connection has been closed"; + public const string SNI_ERROR_21 = "Encryption is enforced but there is no valid certificate"; + public const string SNI_ERROR_22 = "Couldn't load library"; + public const string SNI_ERROR_23 = "Cannot open a new thread in server process"; + public const string SNI_ERROR_24 = "Cannot post event to completion port"; + public const string SNI_ERROR_25 = "Connection string is not valid"; + public const string SNI_ERROR_26 = "Error Locating Server/Instance Specified"; + public const string SNI_ERROR_27 = "Error getting enabled protocols list from registry"; + public const string SNI_ERROR_28 = "Server doesn't support requested protocol"; + public const string SNI_ERROR_29 = "Shared Memory is not supported for clustered server connectivity"; + public const string SNI_ERROR_30 = "Invalid attempt bind to shared memory segment"; + public const string SNI_ERROR_31 = "Encryption(ssl/tls) handshake failed"; + public const string SNI_ERROR_32 = "Packet size too large for SSL Encrypt/Decrypt operations"; + public const string SNI_ERROR_33 = "SSRP error"; + public const string SNI_ERROR_34 = "Could not connect to the Shared Memory pipe"; + public const string SNI_ERROR_35 = "An internal exception was caught"; + public const string SNI_ERROR_36 = "The Shared Memory dll used to connect to SQL Server 2000 was not found"; + public const string SNI_ERROR_37 = "The SQL Server 2000 Shared Memory client dll appears to be invalid/corrupted"; + public const string SNI_ERROR_38 = "Cannot open a Shared Memory connection to SQL Server 2000"; + public const string SNI_ERROR_39 = "Shared memory connectivity to SQL Server 2000 is either disabled or not available on this machine"; + public const string SNI_ERROR_40 = "Could not open a connection to SQL Server"; + public const string SNI_ERROR_41 = "Cannot open a Shared Memory connection to a remote SQL server"; + public const string SNI_ERROR_42 = "Could not establish dedicated administrator connection (DAC) on default port. Make sure that DAC is enabled"; + public const string SNI_ERROR_43 = "An error occurred while obtaining the dedicated administrator connection (DAC) port. Make sure that SQL Browser is running, or check the error log for the port number"; + public const string SNI_ERROR_44 = "Could not compose Service Principal Name (SPN) for Windows Integrated Authentication. Possible causes are server(s) incorrectly specified to connection API calls, Domain Name System (DNS) lookup failure or memory shortage"; + public const string SNI_ERROR_47 = "Connecting with the MultiSubnetFailover connection option to a SQL Server instance configured with more than 64 IP addresses is not supported."; + public const string SNI_ERROR_48 = "Connecting to a named SQL Server instance using the MultiSubnetFailover connection option is not supported."; + public const string SNI_ERROR_49 = "Connecting to a SQL Server instance using the MultiSubnetFailover connection option is only supported when using the TCP protocol."; + public const string SNI_ERROR_50 = "Local Database Runtime error occurred. "; + public const string SNI_ERROR_51 = "An instance name was not specified while connecting to a Local Database Runtime. Specify an instance name in the format (localdb)\\instance_name."; + public const string SNI_ERROR_52 = "Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled."; + public const string SNI_ERROR_53 = "Invalid Local Database Runtime registry configuration found. Verify that SQL Server Express is properly installed."; + public const string SNI_ERROR_54 = "Unable to locate the registry entry for SQLUserInstance.dll file path. Verify that the Local Database Runtime feature of SQL Server Express is properly installed."; + public const string SNI_ERROR_55 = "Registry value contains an invalid SQLUserInstance.dll file path. Verify that the Local Database Runtime feature of SQL Server Express is properly installed."; + public const string SNI_ERROR_56 = "Unable to load the SQLUserInstance.dll from the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed."; + public const string SNI_ERROR_57 = "Invalid SQLUserInstance.dll found at the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed."; + public const string Snix_Connect = "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections."; + public const string Snix_PreLoginBeforeSuccessfulWrite = "The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server."; + public const string Snix_PreLogin = "A connection was successfully established with the server, but then an error occurred during the pre-login handshake."; + public const string Snix_LoginSspi = "A connection was successfully established with the server, but then an error occurred when obtaining the security/SSPI context information for integrated security login."; + public const string Snix_Login = "A connection was successfully established with the server, but then an error occurred during the login process."; + public const string Snix_EnableMars = "Connection open and login was successful, but then an error occurred while enabling MARS for this connection."; + public const string Snix_AutoEnlist = "Connection open and login was successful, but then an error occurred while enlisting the connection into the current distributed transaction."; + public const string Snix_GetMarsSession = "Failed to establish a MARS session in preparation to send the request to the server."; + public const string Snix_Execute = "A transport-level error has occurred when sending the request to the server."; + public const string Snix_Read = "A transport-level error has occurred when receiving results from the server."; + public const string Snix_Close = "A transport-level error has occurred during connection clean-up."; + public const string Snix_SendRows = "A transport-level error has occurred while sending information to the server."; + public const string Snix_ProcessSspi = "A transport-level error has occurred during SSPI handshake."; + public const string LocalDB_FailedGetDLLHandle = "Local Database Runtime: Cannot load SQLUserInstance.dll."; + public const string LocalDB_MethodNotFound = "Invalid SQLUserInstance.dll found at the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed."; + public const string LocalDB_UnobtainableMessage = "Cannot obtain Local Database Runtime error message"; + public const string SQLROR_RecursiveRoutingNotSupported = "Two or more redirections have occurred. Only one redirection per login is allowed."; + public const string SQLROR_FailoverNotSupported = "Connecting to a mirrored SQL Server instance using the ApplicationIntent ReadOnly connection option is not supported."; + public const string SQLROR_UnexpectedRoutingInfo = "Unexpected routing information received."; + public const string SQLROR_InvalidRoutingInfo = "Invalid routing information received."; + public const string SQLROR_TimeoutAfterRoutingInfo = "Server provided routing information, but timeout already expired."; + public const string SQLCR_InvalidConnectRetryCountValue = "Invalid ConnectRetryCount value (should be 0-255)."; + public const string SQLCR_InvalidConnectRetryIntervalValue = "Invalid ConnectRetryInterval value (should be 1-60)."; + public const string SQLCR_NextAttemptWillExceedQueryTimeout = "Next reconnection attempt will exceed query timeout. Reconnection was terminated."; + public const string SQLCR_EncryptionChanged = "The server did not preserve SSL encryption during a recovery attempt, connection recovery is not possible."; + public const string SQLCR_TDSVestionNotPreserved = "The server did not preserve the exact client TDS version requested during a recovery attempt, connection recovery is not possible."; + public const string SQLCR_AllAttemptsFailed = "The connection is broken and recovery is not possible. The client driver attempted to recover the connection one or more times and all attempts failed. Increase the value of ConnectRetryCount to increase the number of recovery attempts."; + public const string SQLCR_UnrecoverableServer = "The connection is broken and recovery is not possible. The connection is marked by the server as unrecoverable. No attempt was made to restore the connection."; + public const string SQLCR_UnrecoverableClient = "The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection."; + public const string SQLCR_NoCRAckAtReconnection = "The server did not acknowledge a recovery attempt, connection recovery is not possible."; + public const string SQL_UnsupportedKeyword = "The keyword '{0}' is not supported on this platform."; + public const string SQL_UnsupportedFeature = "The server is attempting to use a feature that is not supported on this platform."; + public const string SQL_UnsupportedToken = "Received an unsupported token '{0}' while reading data from the server."; + public const string SQL_DbTypeNotSupportedOnThisPlatform = "Type {0} is not supported on this platform."; + public const string SQL_NetworkLibraryNotSupported = "The keyword 'Network Library' is not supported on this platform, prefix the 'Data Source' with the protocol desired instead ('tcp:' for a TCP connection, or 'np:' for a Named Pipe connection)."; + public const string SNI_PN0 = "HTTP Provider"; + public const string SNI_PN1 = "Named Pipes Provider"; + public const string SNI_PN2 = "Session Provider"; + public const string SNI_PN3 = "Sign Provider"; + public const string SNI_PN4 = "Shared Memory Provider"; + public const string SNI_PN5 = "SMux Provider"; + public const string SNI_PN6 = "SSL Provider"; + public const string SNI_PN7 = "TCP Provider"; + public const string SNI_PN8 = ""; + public const string SNI_PN9 = "SQL Network Interfaces"; + public const string AZURESQL_GenericEndpoint = ".database.windows.net"; + public const string AZURESQL_GermanEndpoint = ".database.cloudapi.de"; + public const string AZURESQL_UsGovEndpoint = ".database.usgovcloudapi.net"; + public const string AZURESQL_ChinaEndpoint = ".database.chinacloudapi.cn"; + public const string net_nego_channel_binding_not_supported = "No support for channel binding on operating systems other than Windows."; + public const string net_gssapi_operation_failed_detailed = "GSSAPI operation failed with error - {0} ({1})."; + public const string net_gssapi_operation_failed = "GSSAPI operation failed with status: {0} (Minor status: {1})."; + public const string net_ntlm_not_possible_default_cred = "NTLM authentication is not possible with default credentials on this platform."; + public const string net_nego_not_supported_empty_target_with_defaultcreds = "Target name should be non-empty if default credentials are passed."; + public const string net_nego_server_not_supported = "Server implementation is not supported."; + public const string net_nego_protection_level_not_supported = "Requested protection level is not supported with the GSSAPI implementation currently installed."; + public const string net_context_buffer_too_small = "Insufficient buffer space. Required: {0} Actual: {1}."; + public const string net_auth_message_not_encrypted = "Protocol error: A received message contains a valid signature but it was not encrypted as required by the effective Protection Level."; + public const string net_securitypackagesupport = "The requested security package is not supported."; + public const string net_log_operation_failed_with_error = "{0} failed with error {1}."; + public const string net_MethodNotImplementedException = "This method is not implemented by this class."; + public const string event_OperationReturnedSomething = "{0} returned {1}."; + public const string net_invalid_enum = "The specified value is not valid in the '{0}' enumeration."; + public const string SSPIInvalidHandleType = "'{0}' is not a supported handle type."; + public const string LocalDBNotSupported = "LocalDB is not supported on this platform."; + public const string PlatformNotSupported_DataSqlClient = "System.Data.SqlClient is not supported on this platform."; + public const string SqlParameter_InvalidTableDerivedPrecisionForTvp = "Precision '{0}' required to send all values in column '{1}' exceeds the maximum supported precision '{2}'. The values must all fit in a single precision."; + public const string SqlProvider_InvalidDataColumnMaxLength = "The size of column '{0}' is not supported. The size is {1}."; + public const string MDF_InvalidXmlInvalidValue = "The metadata XML is invalid. The {1} column of the {0} collection must contain a non-empty string."; + public const string MDF_CollectionNameISNotUnique = "There are multiple collections named '{0}'."; + public const string MDF_InvalidXmlMissingColumn = "The metadata XML is invalid. The {0} collection must contain a {1} column and it must be a string column."; + public const string MDF_InvalidXml = "The metadata XML is invalid."; + public const string MDF_NoColumns = "The schema table contains no columns."; + public const string MDF_QueryFailed = "Unable to build the '{0}' collection because execution of the SQL query failed. See the inner exception for details."; + public const string MDF_TooManyRestrictions = "More restrictions were provided than the requested schema ('{0}') supports."; + public const string MDF_DataTableDoesNotExist = "The collection '{0}' is missing from the metadata XML."; + public const string MDF_UndefinedCollection = "The requested collection ({0}) is not defined."; + public const string MDF_UnsupportedVersion = " requested collection ({0}) is not supported by this version of the provider."; + public const string MDF_MissingRestrictionColumn = "One or more of the required columns of the restrictions collection is missing."; + public const string MDF_MissingRestrictionRow = "A restriction exists for which there is no matching row in the restrictions collection."; + public const string MDF_IncorrectNumberOfDataSourceInformationRows = "The DataSourceInformation table must contain exactly one row."; + public const string MDF_MissingDataSourceInformationColumn = "One of the required DataSourceInformation tables columns is missing."; + public const string MDF_AmbigousCollectionName = "The collection name '{0}' matches at least two collections with the same name but with different case, but does not match any of them exactly."; + public const string MDF_UnableToBuildCollection = "Unable to build schema collection '{0}';"; + public const string ADP_CollectionIsParent = "The {0} with is already contained by this {1}."; + public const string ADP_InvalidDataDirectory = "The DataDirectory substitute is not a string."; + public const string ADP_QuotePrefixNotSet = "{0} requires an open connection when the quote prefix has not been set."; + public const string MDF_InvalidRestrictionValue = "'{2}' is not a valid value for the '{1}' restriction of the '{0}' schema collection."; + public const string MDF_UndefinedPopulationMechanism = "The population mechanism '{0}' is not defined."; + public const string ODBC_ODBCCommandText = "OdbcCommandBuilder.DeriveParameters failed because the OdbcCommand.CommandText property value is an invalid multipart name"; + public const string ODBC_NotSupportedEnumerationValue = "The {0} enumeration value, {1}, is not supported by the .Net Framework Odbc Data Provider."; + public const string ADP_DatabaseNameTooLong = "The argument is too long."; + public const string ADP_DataReaderNoData = "No data exists for the row/column."; + public const string ADP_NumericToDecimalOverflow = "The numerical value is too large to fit into a 96 bit decimal."; + public const string ADP_UnknownDataTypeCode = "Unable to handle an unknown TypeCode {0} returned by Type {1}."; + public const string ADP_DbRecordReadOnly = "'{0}' cannot be called when the record is read only."; + public const string ADP_OffsetOutOfRangeException = "Offset must refer to a location within the value."; + public const string ODBC_GetSchemaRestrictionRequired = "The ODBC managed provider requires that the TABLE_NAME restriction be specified and non-null for the GetSchema indexes collection."; + public const string ADP_OdbcNoTypesFromProvider = "The ODBC provider did not return results from SQLGETTYPEINFO."; + public const string OdbcConnection_ConnectionStringTooLong = "Connection string exceeds maximum allowed length of {0}."; + public const string Odbc_UnknownSQLType = "Unknown SQL type - {0}."; + public const string Odbc_NegativeArgument = "Invalid negative argument!"; + public const string Odbc_CantSetPropertyOnOpenConnection = "Can't set property on an open connection."; + public const string Odbc_NoMappingForSqlTransactionLevel = "No valid mapping for a SQL_TRANSACTION '{0}' to a System.Data.IsolationLevel enumeration value."; + public const string Odbc_CantEnableConnectionpooling = "{0} - unable to enable connection pooling..."; + public const string Odbc_CantAllocateEnvironmentHandle = "{0} - unable to allocate an environment handle."; + public const string Odbc_FailedToGetDescriptorHandle = "{0} - unable to get descriptor handle."; + public const string Odbc_NotInTransaction = "Not in a transaction"; + public const string Odbc_ExceptionMessage = "{0} [{1}] {2}"; + public const string Odbc_ConnectionClosed = "The connection is closed."; + public const string Odbc_OpenConnectionNoOwner = "An internal connection does not have an owner."; } diff --git a/mcs/class/System.Data/corefx/Selection.cs b/mcs/class/System.Data/corefx/Selection.cs deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/mcs/class/System.Data/corefx/SqlClientFactory.cs b/mcs/class/System.Data/corefx/SqlClientFactory.cs new file mode 100644 index 00000000000..5aff2ab6373 --- /dev/null +++ b/mcs/class/System.Data/corefx/SqlClientFactory.cs @@ -0,0 +1,24 @@ +// 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. + +using System; +using System.Data; +using System.Data.Sql; +using System.Data.Common; +using System.Security; +using System.Security.Permissions; + +namespace System.Data.SqlClient +{ + partial class SqlClientFactory + { + public override bool CanCreateDataSourceEnumerator => true; + + public override DbDataSourceEnumerator CreateDataSourceEnumerator() => + SqlDataSourceEnumerator.Instance; + + public override CodeAccessPermission CreatePermission (PermissionState state) => + new SqlClientPermission(state); + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/SqlCommand.cs b/mcs/class/System.Data/corefx/SqlCommand.cs new file mode 100644 index 00000000000..c5f0c100c8f --- /dev/null +++ b/mcs/class/System.Data/corefx/SqlCommand.cs @@ -0,0 +1,43 @@ +// 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. + +using System; +using System.Collections; +using System.Data; +using System.Data.Common; + +namespace System.Data.SqlClient +{ + partial class SqlCommand : IDbCommand, ICloneable, IDisposable + { + [MonoTODO] + public bool NotificationAutoEnlist + { + get => Notification != null; + set => throw new NotImplementedException(); + } + + [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)] + public IAsyncResult BeginExecuteNonQuery() => BeginExecuteNonQuery(null, null); + + [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)] + public IAsyncResult BeginExecuteXmlReader() => BeginExecuteXmlReader(null, null); + + [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)] + public IAsyncResult BeginExecuteReader() => + BeginExecuteReader(CommandBehavior.Default, null, null); + + [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)] + public IAsyncResult BeginExecuteReader(AsyncCallback callback, object stateObject) => + BeginExecuteReader(CommandBehavior.Default, callback, stateObject); + + [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)] + public IAsyncResult BeginExecuteReader(AsyncCallback callback, object stateObject, CommandBehavior behavior) => + BeginExecuteReader(behavior, callback, stateObject); + + [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)] + public IAsyncResult BeginExecuteReader(CommandBehavior behavior) => + BeginExecuteReader(behavior, null, null); + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/SqlConnection.cs b/mcs/class/System.Data/corefx/SqlConnection.cs new file mode 100644 index 00000000000..20638a4e970 --- /dev/null +++ b/mcs/class/System.Data/corefx/SqlConnection.cs @@ -0,0 +1,40 @@ +// 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. + +using System; +using System.Collections; +using System.Data; +using System.Data.Common; + +namespace System.Data.SqlClient +{ + partial class SqlConnection : IDbConnection, ICloneable, IDisposable + { + public SqlConnection(string connectionString, SqlCredential credential) + { + ConnectionString = connectionString; + Credentials = credential; + } + + [MonoTODO] //https://github.com/dotnet/corefx/issues/11958 + public static void ChangePassword (string connectionString, string newPassword) + { + throw new NotImplementedException(); + } + + [MonoTODO] //https://github.com/dotnet/corefx/issues/11542 + public SqlCredential Credentials { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + +#if !MOBILE + [MonoTODO] + public void EnlistDistributedTransaction(System.EnterpriseServices.ITransaction transaction) + { + throw new NotImplementedException(); + } +#endif + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/SqlConnectionStringBuilder.cs b/mcs/class/System.Data/corefx/SqlConnectionStringBuilder.cs new file mode 100644 index 00000000000..9f3c9cf73bb --- /dev/null +++ b/mcs/class/System.Data/corefx/SqlConnectionStringBuilder.cs @@ -0,0 +1,53 @@ +// 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. + +using System; +using System.Collections; +using System.Data; +using System.Data.Common; + +namespace System.Data.SqlClient +{ + partial class SqlConnectionStringBuilder + { + [Obsolete("This property is ignored beginning in .NET Framework 4.5." + + "For more information about SqlClient support for asynchronous programming, see" + + "https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/asynchronous-programming")] + public bool AsynchronousProcessing { get; set; } + + [Obsolete("ConnectionReset has been deprecated. SqlConnection will ignore the 'connection reset'" + + "keyword and always reset the connection")] + public bool ConnectionReset { get; set; } + + [MonoTODO("Not implemented in corefx: https://github.com/dotnet/corefx/issues/22474")] + public bool ContextConnection { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + + [MonoTODO("Not implemented in corefx: https://github.com/dotnet/corefx/issues/22474")] + public string NetworkLibrary { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + + [MonoTODO("Not implemented in corefx: https://github.com/dotnet/corefx/issues/22474")] + public PoolBlockingPeriod PoolBlockingPeriod { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + + [MonoTODO("Not implemented in corefx: https://github.com/dotnet/corefx/issues/22474")] + public bool TransparentNetworkIPResolution { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + + [MonoTODO("Not implemented in corefx: https://github.com/dotnet/corefx/issues/22474")] + public SqlConnectionColumnEncryptionSetting ColumnEncryptionSetting { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/SqlDependencyUtils.cs b/mcs/class/System.Data/corefx/SqlDependencyUtils.cs new file mode 100644 index 00000000000..3640c3759fa --- /dev/null +++ b/mcs/class/System.Data/corefx/SqlDependencyUtils.cs @@ -0,0 +1,14 @@ +// 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 System.Data.SqlClient +{ + partial class SqlDependencyPerAppDomainDispatcher + { + private void SubscribeToAppDomainUnload() + { + //override corefx behavior with no-op. + } + } +} diff --git a/mcs/class/System.Data/corefx/SqlException.cs b/mcs/class/System.Data/corefx/SqlException.cs new file mode 100644 index 00000000000..5509434e49d --- /dev/null +++ b/mcs/class/System.Data/corefx/SqlException.cs @@ -0,0 +1,32 @@ +// 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. + +using System; +using System.Text; + +namespace System.Data.SqlClient +{ + partial class SqlException + { + private const string DEF_MESSAGE = "SQL Exception has occured."; + + public override string Message { + get { + if (Errors.Count == 0) + return base.Message; + StringBuilder result = new StringBuilder (); + if (base.Message != DEF_MESSAGE) { + result.Append (base.Message); + result.Append ("\n"); + } + for (int i = 0; i < Errors.Count -1; i++) { + result.Append (Errors [i].Message); + result.Append ("\n"); + } + result.Append (Errors [Errors.Count - 1].Message); + return result.ToString (); + } + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/SqlMetaData.cs b/mcs/class/System.Data/corefx/SqlMetaData.cs new file mode 100644 index 00000000000..dcf7c48da8e --- /dev/null +++ b/mcs/class/System.Data/corefx/SqlMetaData.cs @@ -0,0 +1,21 @@ +// 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. + +using System; +using System.Data; + +namespace Microsoft.SqlServer.Server +{ + partial class SqlMetaData + { + public SqlMetaData (string name, SqlDbType dbType, Type userDefinedType) : + this (name, dbType, -1, 0, 0, 0, System.Data.SqlTypes.SqlCompareOptions.None, userDefinedType) { } + + + [MonoTODO] + public System.Data.DbType DbType { + get => throw new NotImplementedException(); + } + } +} diff --git a/mcs/class/System.Data/corefx/SqlParameter.cs b/mcs/class/System.Data/corefx/SqlParameter.cs new file mode 100644 index 00000000000..846768fe085 --- /dev/null +++ b/mcs/class/System.Data/corefx/SqlParameter.cs @@ -0,0 +1,37 @@ +// 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. + +using System; +using System.Collections; +using System.Data; +using System.Data.Common; + +namespace System.Data.SqlClient +{ + partial class SqlParameter + { + public SqlParameter(string parameterName, SqlDbType dbType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value) + { + if (parameterName == null) + parameterName = string.Empty; + + _isNull = isNullable; + Value = value; + Scale = scale; + Size = size; + Precision = precision; + SqlDbType = dbType; + Direction = direction; + SourceColumn = sourceColumn; + SourceVersion = sourceVersion; + } + + [MonoTODO] + public string UdtTypeName + { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/SqlParameterCollection.cs b/mcs/class/System.Data/corefx/SqlParameterCollection.cs new file mode 100644 index 00000000000..ca7937f487e --- /dev/null +++ b/mcs/class/System.Data/corefx/SqlParameterCollection.cs @@ -0,0 +1,19 @@ +// 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. + +using System.Collections.Generic; +using System.Data.Common; + +namespace System.Data.SqlClient +{ + partial class SqlParameterCollection : + System.Collections.ICollection, + System.Collections.IEnumerable, + System.Collections.IList, + System.Data.IDataParameterCollection + { + public SqlParameter Add(string parameterName, object value) + => Add(new SqlParameter(parameterName, value)); + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/corefx/TdsEnums.cs b/mcs/class/System.Data/corefx/TdsEnums.cs new file mode 100644 index 00000000000..ddc362f7ce4 --- /dev/null +++ b/mcs/class/System.Data/corefx/TdsEnums.cs @@ -0,0 +1,33 @@ +// 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. + +using System.Collections.Generic; +using System.Data.Common; +using System.Diagnostics; +using System.Threading; + +namespace System.Data.SqlClient +{ + public enum SqlConnectionColumnEncryptionSetting + { + Disabled = 0, + Enabled, + } + + public enum SqlAuthenticationMethod + { + NotSpecified = 0, + SqlPassword, + ActiveDirectoryPassword, + ActiveDirectoryIntegrated, + } + + public enum SqlCommandColumnEncryptionSetting + { + UseConnectionSetting = 0, + Enabled, + ResultSetOnly, + Disabled, + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/darwin_net_4_x_System.Data.dll.sources b/mcs/class/System.Data/darwin_net_4_x_System.Data.dll.sources new file mode 100644 index 00000000000..87d9b19fbf8 --- /dev/null +++ b/mcs/class/System.Data/darwin_net_4_x_System.Data.dll.sources @@ -0,0 +1,4 @@ +#include corefx.unix.sources +#include net_4_x_System.Data.dll.sources + +../../../external/corefx/src/System.Data.Odbc/src/Common/System/Data/Common/ExternDll.Osx.cs diff --git a/mcs/class/System.Data/linux_net_4_x_System.Data.dll.sources b/mcs/class/System.Data/linux_net_4_x_System.Data.dll.sources new file mode 100644 index 00000000000..be2e110dc6a --- /dev/null +++ b/mcs/class/System.Data/linux_net_4_x_System.Data.dll.sources @@ -0,0 +1,4 @@ +#include corefx.unix.sources +#include net_4_x_System.Data.dll.sources + +../../../external/corefx/src/System.Data.Odbc/src/Common/System/Data/Common/ExternDll.Linux.cs diff --git a/mcs/class/System.Data/mobile_System.Data.dll.sources b/mcs/class/System.Data/mobile_System.Data.dll.sources deleted file mode 100644 index cbf257234a7..00000000000 --- a/mcs/class/System.Data/mobile_System.Data.dll.sources +++ /dev/null @@ -1,70 +0,0 @@ -Assembly/AssemblyInfo.cs -../../build/common/Consts.cs -../../build/common/Locale.cs -../../build/common/SR.cs -../../build/common/MonoTODOAttribute.cs -../../build/common/AssemblyRef.cs - -ReferenceSources/NativeOledbWrapper.cs -ReferenceSources/PoolBlockingPeriod.cs -ReferenceSources/Res.cs -ReferenceSources/Res.missing.cs -ReferenceSources/ResCategoryAttribute.cs -ReferenceSources/ResDescriptionAttribute.cs -ReferenceSources/ThisAssembly.cs -ReferenceSources/Win32NativeMethods.cs -ReferenceSources/SqlInternalConnectionTds.cs -ReferenceSources/mobile_DbConnectionPoolCounters.cs - -corefx/SR.cs - -Microsoft.SqlServer.Server/SqlDataRecord.cs -Microsoft.SqlServer.Server/SqlMetaData.cs - -System.Data.SqlClient/SortOrder.cs -System.Data.SqlClient/SqlNotificationType.cs -System.Data.SqlClient/SqlNotificationInfo.cs -System.Data.SqlClient/SqlNotificationSource.cs -System.Data.SqlClient/SqlAsyncState.cs -System.Data.SqlClient/SqlAsyncResult.cs -System.Data.SqlClient/SqlClientMetaDataCollectionNames.cs -System.Data.SqlClient/SqlCommand.cs -System.Data.SqlClient/SqlCommandBuilder.cs -System.Data.SqlClient/SqlConnection.cs -System.Data.SqlClient/SqlCredential.cs -System.Data.SqlClient/SqlDataAdapter.cs -System.Data.SqlClient/SqlDataReader.cs -System.Data.SqlClient/SqlDataSourceConverter.cs -System.Data.SqlClient/SqlDependency.cs -System.Data.SqlClient/SqlException.cs -System.Data.SqlClient/SqlInfoMessageEventHandler.cs -System.Data.SqlClient/SqlInitialCatalogConverter.cs -System.Data.SqlClient/NetworkLibraryConverter.cs -System.Data.SqlClient/SqlParameter.cs -System.Data.SqlClient/SqlParameterCollection.cs -System.Data.SqlClient/SqlParameterConverter.cs -System.Data.SqlClient/SqlRowUpdatedEventArgs.cs -System.Data.SqlClient/SqlRowUpdatedEventHandler.cs -System.Data.SqlClient/SqlRowUpdatingEventArgs.cs -System.Data.SqlClient/SqlRowUpdatingEventHandler.cs -System.Data.SqlClient/SqlTransaction.cs -System.Data.SqlClient/SqlXmlTextReader.cs -System.Data.SqlClient/SQLDebugging.cs -System.Data.SqlClient/SqlClientFactory.cs -System.Data.SqlClient/SqlBulkCopy.cs -System.Data.SqlClient/SqlBulkCopyOptions.cs -System.Data.SqlClient/SqlBulkCopyColumnMapping.cs -System.Data.SqlClient/SqlBulkCopyColumnMappingCollection.cs -System.Data.SqlClient/SqlRowsCopiedEventHandler.cs -System.Data.SqlClient/SqlRowsCopiedEventArgs.cs -System.Data.SqlClient/SqlNotificationEventArgs.cs -System.Data.SqlClient/OnChangeEventHandler.cs -System.Data.SqlClient/SqlDecimalExtensions.cs - -System.Data.Common/DbTypes.cs -System.Data.Common/ExceptionHelper.cs -System.Data.Common/DbConnectionStringBuilderHelper.cs - -MobileStubs.cs - -#include corefx.common.sources diff --git a/mcs/class/System.Data/monodroid_System.Data.dll.sources b/mcs/class/System.Data/monodroid_System.Data.dll.sources deleted file mode 100644 index bbc860b8cd7..00000000000 --- a/mcs/class/System.Data/monodroid_System.Data.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include mobile_System.Data.dll.sources diff --git a/mcs/class/System.Data/monotouch_System.Data.dll.sources b/mcs/class/System.Data/monotouch_System.Data.dll.sources deleted file mode 100644 index bbc860b8cd7..00000000000 --- a/mcs/class/System.Data/monotouch_System.Data.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include mobile_System.Data.dll.sources diff --git a/mcs/class/System.Data/monotouch_tv_System.Data.dll.sources b/mcs/class/System.Data/monotouch_tv_System.Data.dll.sources deleted file mode 100644 index bbc860b8cd7..00000000000 --- a/mcs/class/System.Data/monotouch_tv_System.Data.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include mobile_System.Data.dll.sources diff --git a/mcs/class/System.Data/monotouch_watch_System.Data.dll.exclude.sources b/mcs/class/System.Data/monotouch_watch_System.Data.dll.exclude.sources deleted file mode 100644 index 2782624ebc8..00000000000 --- a/mcs/class/System.Data/monotouch_watch_System.Data.dll.exclude.sources +++ /dev/null @@ -1,11 +0,0 @@ -System.Data.SqlClient/SqlBulkCopy.cs -System.Data.SqlClient/SqlCommand.cs -System.Data.SqlClient/SqlCommandBuilder.cs -System.Data.SqlClient/SqlConnection.cs -System.Data.SqlClient/SqlDataReader.cs -System.Data.SqlClient/SqlDecimalExtensions.cs -System.Data.SqlClient/SqlException.cs -System.Data.SqlClient/SqlParameter.cs -System.Data.SqlClient/SqlParameterCollection.cs -System.Data.SqlClient/SqlTransaction.cs -System.Data.SqlClient/SqlXmlTextReader.cs diff --git a/mcs/class/System.Data/monotouch_watch_System.Data.dll.sources b/mcs/class/System.Data/monotouch_watch_System.Data.dll.sources deleted file mode 100644 index f279aec8060..00000000000 --- a/mcs/class/System.Data/monotouch_watch_System.Data.dll.sources +++ /dev/null @@ -1,10 +0,0 @@ -#include mobile_System.Data.dll.sources -System.Data.SqlClient/SqlBulkCopy.platformnotsupported.cs -System.Data.SqlClient/SqlCommand.platformnotsupported.cs -System.Data.SqlClient/SqlCommandBuilder.platformnotsupported.cs -System.Data.SqlClient/SqlConnection.platformnotsupported.cs -System.Data.SqlClient/SqlDataReader.platformnotsupported.cs -System.Data.SqlClient/SqlException.platformnotsupported.cs -System.Data.SqlClient/SqlParameter.platformnotsupported.cs -System.Data.SqlClient/SqlParameterCollection.platformnotsupported.cs -System.Data.SqlClient/SqlTransaction.platformnotsupported.cs 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 dissimilarity index 89% index 755a08f5d52..12f21625dfc 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 @@ -1,174 +1,65 @@ -Assembly/AssemblyInfo.cs -../../build/common/Consts.cs -../../build/common/Locale.cs -../../build/common/SR.cs -../../build/common/MonoTODOAttribute.cs -../../build/common/AssemblyRef.cs - -ReferenceSources/NativeOledbWrapper.cs -ReferenceSources/PoolBlockingPeriod.cs -ReferenceSources/Res.cs -ReferenceSources/Res.missing.cs -ReferenceSources/ResCategoryAttribute.cs -ReferenceSources/ResDescriptionAttribute.cs -ReferenceSources/ThisAssembly.cs -ReferenceSources/Win32NativeMethods.cs -ReferenceSources/SqlInternalConnectionTds.cs - -corefx/SR.cs -corefx/DBCommandBuilder.cs -corefx/FieldNameLookup.cs -corefx/DbConnection.cs - -Microsoft.SqlServer.Server/SqlDataRecord.cs -Microsoft.SqlServer.Server/SqlMetaData.cs -System.Data.SqlClient/SortOrder.cs -System.Data.SqlClient/SqlNotificationType.cs -System.Data.SqlClient/SqlNotificationInfo.cs -System.Data.SqlClient/SqlNotificationSource.cs -System.Data.SqlClient/SqlAsyncState.cs -System.Data.SqlClient/SqlAsyncResult.cs -System.Data.SqlClient/SqlClientMetaDataCollectionNames.cs -System.Data.SqlClient/SqlCommand.cs -System.Data.SqlClient/SqlCommandBuilder.cs -System.Data.SqlClient/SqlConnection.cs -System.Data.SqlClient/SqlCredential.cs -System.Data.SqlClient/SqlDataAdapter.cs -System.Data.SqlClient/SqlDataReader.cs -System.Data.SqlClient/SqlDataSourceConverter.cs -System.Data.SqlClient/SqlDependency.cs -System.Data.SqlClient/SqlException.cs -System.Data.SqlClient/SqlInfoMessageEventHandler.cs -System.Data.SqlClient/SqlInitialCatalogConverter.cs -System.Data.SqlClient/NetworkLibraryConverter.cs -System.Data.SqlClient/SqlParameter.cs -System.Data.SqlClient/SqlParameterCollection.cs -System.Data.SqlClient/SqlParameterConverter.cs -System.Data.SqlClient/SqlRowUpdatedEventArgs.cs -System.Data.SqlClient/SqlRowUpdatedEventHandler.cs -System.Data.SqlClient/SqlRowUpdatingEventArgs.cs -System.Data.SqlClient/SqlRowUpdatingEventHandler.cs -System.Data.SqlClient/SqlTransaction.cs -System.Data.SqlClient/SqlXmlTextReader.cs -System.Data.SqlClient/SQLDebugging.cs -System.Data.SqlClient/SqlClientFactory.cs -System.Data.SqlClient/SqlBulkCopy.cs -System.Data.SqlClient/SqlBulkCopyOptions.cs -System.Data.SqlClient/SqlBulkCopyColumnMapping.cs -System.Data.SqlClient/SqlBulkCopyColumnMappingCollection.cs -System.Data.SqlClient/SqlRowsCopiedEventHandler.cs -System.Data.SqlClient/SqlRowsCopiedEventArgs.cs -System.Data.SqlClient/SqlNotificationEventArgs.cs -System.Data.SqlClient/OnChangeEventHandler.cs -System.Data.SqlClient/SqlDecimalExtensions.cs - -System.Data.Common/DbTypes.cs -System.Data.Common/ExceptionHelper.cs -System.Data.Common/DbConnectionStringBuilderHelper.cs - -../../../external/corefx/src/System.Data.Odbc/src/Common/System/HResults.cs - -../referencesource/System.Data/bid/inc/cs/bidPrivateBase.cs -../referencesource/System.Data/Misc/PrivilegedConfigurationManager.cs -../referencesource/System.Data/System/Data/CodeGen/datacache.cs -../referencesource/System.Data/System/Data/Common/DbProviderConfigurationHandler.cs -../referencesource/System.Data/System/Data/Common/DbProviderFactoriesConfigurationHandler.cs -../referencesource/System.Data/System/Data/Common/DbProviderFactories.cs -../referencesource/System.Data/System/Data/Common/HandlerBase.cs -../referencesource/System.Data/System/Data/Common/NativeMethods.cs -../referencesource/System.Data/System/Data/Common/SafeNativeMethods.cs -../referencesource/System.Data/System/Data/Common/System.Data_BID.cs -../referencesource/System.Data/System/Data/Common/UnsafeNativeMethods.cs -../referencesource/System.Data/System/Data/Odbc/DbDataRecord.cs -../referencesource/System.Data/System/Data/Odbc/Odbc32.cs -../referencesource/System.Data/System/Data/Odbc/OdbcCommandBuilder.cs -../referencesource/System.Data/System/Data/Odbc/OdbcCommand.cs -../referencesource/System.Data/System/Data/Odbc/OdbcConnection.cs -../referencesource/System.Data/System/Data/Odbc/OdbcConnectionFactory.cs -../referencesource/System.Data/System/Data/Odbc/OdbcConnectionHandle.cs -../referencesource/System.Data/System/Data/Odbc/OdbcConnectionOpen.cs -../referencesource/System.Data/System/Data/Odbc/OdbcConnectionPoolProviderInfo.cs -../referencesource/System.Data/System/Data/Odbc/OdbcConnectionStringbuilder.cs -../referencesource/System.Data/System/Data/Odbc/OdbcConnectionString.cs -../referencesource/System.Data/System/Data/Odbc/OdbcDataAdapter.cs -../referencesource/System.Data/System/Data/Odbc/OdbcDataReader.cs -../referencesource/System.Data/System/Data/Odbc/OdbcEnvironment.cs -../referencesource/System.Data/System/Data/Odbc/OdbcEnvironmentHandle.cs -../referencesource/System.Data/System/Data/Odbc/OdbcErrorCollection.cs -../referencesource/System.Data/System/Data/Odbc/OdbcError.cs -../referencesource/System.Data/System/Data/Odbc/OdbcException.cs -../referencesource/System.Data/System/Data/Odbc/OdbcFactory.cs -../referencesource/System.Data/System/Data/Odbc/OdbcHandle.cs -../referencesource/System.Data/System/Data/Odbc/OdbcInfoMessageEvent.cs -../referencesource/System.Data/System/Data/Odbc/odbcmetadatacollectionnames.cs -../referencesource/System.Data/System/Data/Odbc/odbcmetadatacolumnnames.cs -../referencesource/System.Data/System/Data/Odbc/odbcmetadatafactory.cs -../referencesource/System.Data/System/Data/Odbc/OdbcParameterCollection.cs -../referencesource/System.Data/System/Data/Odbc/OdbcParameter.cs -../referencesource/System.Data/System/Data/Odbc/OdbcPermission.cs -../referencesource/System.Data/System/Data/Odbc/OdbcReferenceCollection.cs -../referencesource/System.Data/System/Data/Odbc/OdbcRowUpdatingEvent.cs -../referencesource/System.Data/System/Data/Odbc/OdbcStatementHandle.cs -../referencesource/System.Data/System/Data/Odbc/OdbcTransaction.cs -../referencesource/System.Data/System/Data/Odbc/OdbcType.cs -../referencesource/System.Data/System/Data/Odbc/OdbcUtils.cs -../referencesource/System.Data/System/Data/OleDb/ColumnBinding.cs -../referencesource/System.Data/System/Data/OleDb/DBBindings.cs -../referencesource/System.Data/System/Data/OleDb/DBPropSet.cs -../referencesource/System.Data/System/Data/OleDb/OleDbCommandBuilder.cs -../referencesource/System.Data/System/Data/OleDb/OleDbCommand.cs -../referencesource/System.Data/System/Data/OleDb/OleDbConnection.cs -../referencesource/System.Data/System/Data/OleDb/OleDbConnectionFactory.cs -../referencesource/System.Data/System/Data/OleDb/OleDbConnectionInternal.cs -../referencesource/System.Data/System/Data/OleDb/OleDbConnectionPoolGroupProviderInfo.cs -../referencesource/System.Data/System/Data/OleDb/OledbConnectionStringbuilder.cs -../referencesource/System.Data/System/Data/OleDb/oledbconnectionstring.cs -../referencesource/System.Data/System/Data/OleDb/OleDbDataAdapter.cs -../referencesource/System.Data/System/Data/OleDb/OleDbDataReader.cs -../referencesource/System.Data/System/Data/OleDb/OLEDB_Enum.cs -../referencesource/System.Data/System/Data/OleDb/OleDbEnumerator.cs -../referencesource/System.Data/System/Data/OleDb/OleDbErrorCollection.cs -../referencesource/System.Data/System/Data/OleDb/OleDbError.cs -../referencesource/System.Data/System/Data/OleDb/OleDbException.cs -../referencesource/System.Data/System/Data/OleDb/OleDbFactory.cs -../referencesource/System.Data/System/Data/OleDb/OleDbHResult.cs -../referencesource/System.Data/System/Data/OleDb/OleDbInfoMessageEvent.cs -../referencesource/System.Data/System/Data/OleDb/OleDbInfoMessageEventHandler.cs -../referencesource/System.Data/System/Data/OleDb/OleDbLiteral.cs -../referencesource/System.Data/System/Data/OleDb/oledbmetadatacollectionnames.cs -../referencesource/System.Data/System/Data/OleDb/oledbmetadatacolumnnames.cs -../referencesource/System.Data/System/Data/OleDb/OleDbMetaDataFactory.cs -../referencesource/System.Data/System/Data/OleDb/OleDbParameterCollection.cs -../referencesource/System.Data/System/Data/OleDb/OleDbParameter.cs -../referencesource/System.Data/System/Data/OleDb/OleDbPermission.cs -../referencesource/System.Data/System/Data/OleDb/OleDbPropertySetGuid.cs -../referencesource/System.Data/System/Data/OleDb/OleDbPropertyStatus.cs -../referencesource/System.Data/System/Data/OleDb/OleDbReferenceCollection.cs -../referencesource/System.Data/System/Data/OleDb/OleDbRowUpdatedEvent.cs -../referencesource/System.Data/System/Data/OleDb/OleDbRowUpdatedEventHandler.cs -../referencesource/System.Data/System/Data/OleDb/OleDbRowUpdatingEvent.cs -../referencesource/System.Data/System/Data/OleDb/OleDbRowUpdatingEventHandler.cs -../referencesource/System.Data/System/Data/OleDb/OleDbSchemaGuid.cs -../referencesource/System.Data/System/Data/OleDb/OleDbStruct.cs -../referencesource/System.Data/System/Data/OleDb/OleDbTransaction.cs -../referencesource/System.Data/System/Data/OleDb/OLEDB_Util.cs -../referencesource/System.Data/System/Data/OleDb/OleDbWrapper.cs -../referencesource/System.Data/System/Data/OleDb/PropertyIDSet.cs -../referencesource/System.Data/System/Data/OleDb/PropertyInfoSet.cs -../referencesource/System.Data/System/Data/OleDb/RowBinding.cs -../referencesource/System.Data/System/Data/OleDb/SafeHandles.cs -../referencesource/System.Data/System/Data/ProviderBase/DbBuffer.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionClosed.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionFactory.cs -# ../referencesource/System.Data/System/Data/ProviderBase/DbConnectionHelper.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionInternal.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionPoolCounters.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionPool.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionPoolGroup.cs -../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPoolGroupProviderInfo.cs -../referencesource/System.Data/System/Data/ProviderBase/DbConnectionPoolIdentity.cs -# ../referencesource/System.Data/System/Data/ProviderBase/DbParameterCollectionHelper.cs -# ../referencesource/System.Data/System/Data/ProviderBase/DbParameterHelper.cs -../referencesource/System.Data/System/Data/SQLTypes/SqlTypesSchemaImporter.cs - -#include corefx.common.sources +#include corefx.common.sources + +Assembly/AssemblyInfo.cs +../../build/common/Consts.cs +../../build/common/Locale.cs +../../build/common/MonoTODOAttribute.cs +../../build/common/AssemblyRef.cs +../../build/common/SR.cs + +System.Data.SqlClient/SQLDebugging.cs +../referencesource/System.Data/System/Data/CodeGen/datacache.cs +../referencesource/System.Data/Misc/PrivilegedConfigurationManager.cs +../referencesource/System.Data/System/Data/Common/DbProviderConfigurationHandler.cs +../referencesource/System.Data/System/Data/Common/DbProviderFactoriesConfigurationHandler.cs +../referencesource/System.Data/System/Data/Common/DbProviderFactories.cs +../referencesource/System.Data/System/Data/Common/HandlerBase.cs +../referencesource/System.Data/System/Data/SQLTypes/SqlTypesSchemaImporter.cs +../referencesource/System.Data/System/Data/Odbc/OdbcConnectionOpen.cs + +# ODBC +corefx/Odbc/OdbcFactory.cs +corefx/Odbc/DbConnectionStringCommon.cs +../referencesource/System.Data/System/Data/Odbc/OdbcPermission.cs +../../../external/corefx/src/System.Data.Odbc/src/Properties/SecurityTransparent.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/DbDataRecord.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/Odbc32.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcCommand.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcCommandBuilder.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcConnection.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcConnectionFactory.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcConnectionHandle.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcConnectionHelper.cs +#../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcConnectionOpen.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcConnectionPoolProviderInfo.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcConnectionString.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcConnectionStringbuilder.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcDataAdapter.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcDataReader.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcEnvironment.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcEnvironmentHandle.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcError.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcErrorCollection.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcException.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcFactory.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcHandle.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcInfoMessageEvent.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcMetaDataCollectionNames.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcMetaDataColumnNames.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcMetaDataFactory.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcParameter.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcParameterCollection.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcParameterCollectionHelper.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcParameterHelper.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcReferenceCollection.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcRowUpdatingEvent.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcStatementHandle.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcTransaction.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcType.cs +../../../external/corefx/src/System.Data.Odbc/src/System/Data/Odbc/OdbcUtils.cs +../../../external/corefx/src/System.Data.Odbc/src/Common/System/HResults.cs +../../../external/corefx/src/System.Data.Odbc/src/Common/System/Data/Common/UnsafeNativeMethods.cs + +# OLEDB +corefx/OleDbStubs.cs +../referencesource/System.Data/System/Data/OleDb/OleDbPermission.cs diff --git a/mcs/class/System.Data/orbis_System.Data.dll.sources b/mcs/class/System.Data/orbis_System.Data.dll.sources deleted file mode 100644 index bbc860b8cd7..00000000000 --- a/mcs/class/System.Data/orbis_System.Data.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include mobile_System.Data.dll.sources diff --git a/mcs/class/System.Data/testing_aot_full_System.Data.dll.sources b/mcs/class/System.Data/testing_aot_full_System.Data.dll.sources deleted file mode 100644 index bbc860b8cd7..00000000000 --- a/mcs/class/System.Data/testing_aot_full_System.Data.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include mobile_System.Data.dll.sources diff --git a/mcs/class/System.Data/testing_aot_full_System.Data_test.dll.sources b/mcs/class/System.Data/testing_aot_full_System.Data_test.dll.sources deleted file mode 100644 index 310b8c2fb3d..00000000000 --- a/mcs/class/System.Data/testing_aot_full_System.Data_test.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include System.Data_test.dll.sources diff --git a/mcs/class/System.Data/testing_aot_hybrid_System.Data.dll.sources b/mcs/class/System.Data/testing_aot_hybrid_System.Data.dll.sources deleted file mode 100644 index bbc860b8cd7..00000000000 --- a/mcs/class/System.Data/testing_aot_hybrid_System.Data.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include mobile_System.Data.dll.sources diff --git a/mcs/class/System.Data/unreal_System.Data.dll.sources b/mcs/class/System.Data/unreal_System.Data.dll.sources deleted file mode 100644 index bbc860b8cd7..00000000000 --- a/mcs/class/System.Data/unreal_System.Data.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include mobile_System.Data.dll.sources diff --git a/mcs/class/System.Data/win32_net_4_x_System.Data.dll.sources b/mcs/class/System.Data/win32_net_4_x_System.Data.dll.sources new file mode 100644 index 00000000000..ad1fa67b768 --- /dev/null +++ b/mcs/class/System.Data/win32_net_4_x_System.Data.dll.sources @@ -0,0 +1,50 @@ +#include net_4_x_System.Data.dll.sources + +#../../../external/corefx/src/Common/src/Microsoft/Win32/SafeHandles/GssSafeHandles.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPoolIdentity.Windows.cs +../../../external/corefx/src/System.Data.SqlClient/src/Interop/SNINativeMethodWrapper.Windows.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParserSafeHandles.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParserStateObjectNative.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParserStateObjectFactory.Managed.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/TdsParser.Windows.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/LocalDB.Windows.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/LocalDBAPI.Common.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/LocalDBAPI.Windows.cs +../../../external/corefx/src/System.Data.SqlClient/src/System/Data/ProviderBase/DbConnectionPoolIdentity.Windows.cs +../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.LoadLibraryEx.cs +../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.FreeLibrary.cs +../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.GetProcAddress.cs +../../../external/corefx/src/Common/src/Microsoft/Win32/SafeHandles/SafeLibraryHandle.cs +../../../external/corefx/src/Common/src/System/Net/Security/NegotiateStreamPal.Windows.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SafeDeleteContext.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SecuritySafeHandles.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/Interop.SSPI.cs +../../../external/corefx/src/Common/src/System/Net/Security/SecurityContextTokenHandle.cs +../../../external/corefx/src/Common/src/Interop/Windows/Interop.Libraries.cs +../../../external/corefx/src/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Bindings.cs +../../../external/corefx/src/Common/src/System/Net/DebugCriticalHandleZeroOrMinusOneIsInvalid.cs +../../../external/corefx/src/Common/src/System/Net/Security/NetEventSource.Security.cs +../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.CloseHandle.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/GlobalSSPI.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SSPIInterface.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfoClass.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SecurityPackageInfo.cs +../../../external/corefx/src/Common/src/System/Net/IntPtrHelper.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SSPIAuthType.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SSPISecureChannelType.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SSPIWrapper.cs +../../../external/corefx/src/Common/src/System/Net/Security/NetEventSource.Security.Windows.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SecPkgContext_Sizes.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SecPkgContext_StreamSizes.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/SecPkgContext_NegotiationInfoW.cs +../../../external/corefx/src/Common/src/Interop/Windows/SChannel/SecPkgContext_ConnectionInfo.cs +../../../external/corefx/src/Common/src/Interop/Windows/sspicli/NegotiationInfoClass.cs +../../../external/corefx/src/Common/src/Interop/Windows/Crypt32/Interop.certificates.cs +../../../external/corefx/src/Common/src/Interop/Windows/Crypt32/Interop.certificates_types.cs +../../../external/corefx/src/Common/src/System/Net/ContextFlagsAdapterPal.Windows.cs +../../../external/corefx/src/Common/src/System/Net/SecurityStatusAdapterPal.Windows.cs +../../../external/corefx/src/Common/src/System/Collections/Generic/BidirectionalDictionary.cs + +# ODBC: +../../../external/corefx/src/System.Data.Odbc/src/Common/System/Data/Common/ExternDll.Windows.cs diff --git a/mcs/class/System.Data/winaot_System.Data.dll.sources b/mcs/class/System.Data/winaot_System.Data.dll.sources deleted file mode 100644 index bbc860b8cd7..00000000000 --- a/mcs/class/System.Data/winaot_System.Data.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include mobile_System.Data.dll.sources diff --git a/mcs/class/System.Data/xammac_System.Data.dll.sources b/mcs/class/System.Data/xammac_System.Data.dll.sources deleted file mode 100644 index bbc860b8cd7..00000000000 --- a/mcs/class/System.Data/xammac_System.Data.dll.sources +++ /dev/null @@ -1 +0,0 @@ -#include mobile_System.Data.dll.sources diff --git a/mcs/class/System.Data/xammac_net_4_5_System.Data.dll.sources b/mcs/class/System.Data/xammac_net_4_5_System.Data.dll.sources index 652c5631202..80f9840d55e 100644 --- a/mcs/class/System.Data/xammac_net_4_5_System.Data.dll.sources +++ b/mcs/class/System.Data/xammac_net_4_5_System.Data.dll.sources @@ -1 +1 @@ -#include net_4_x_System.Data.dll.sources +#include darwin_net_4_x_System.Data.dll.sources diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/AccessDataSourceView.cs b/mcs/class/System.Web/System.Web.UI.WebControls/AccessDataSourceView.cs index 1421072494a..eb87e6184d6 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls/AccessDataSourceView.cs +++ b/mcs/class/System.Web/System.Web.UI.WebControls/AccessDataSourceView.cs @@ -81,4 +81,3 @@ namespace System.Web.UI.WebControls } } - diff --git a/mcs/class/referencesource/System.Data/System/Data/Odbc/OdbcConnectionOpen.cs b/mcs/class/referencesource/System.Data/System/Data/Odbc/OdbcConnectionOpen.cs index 42c134450bc..7650cfdb406 100644 --- a/mcs/class/referencesource/System.Data/System/Data/Odbc/OdbcConnectionOpen.cs +++ b/mcs/class/referencesource/System.Data/System/Data/Odbc/OdbcConnectionOpen.cs @@ -54,7 +54,9 @@ namespace System.Data.Odbc { } override protected void Activate(SysTx.Transaction transaction) { +#if !COREFX OdbcConnection.ExecutePermission.Demand(); +#endif } override public DbTransaction BeginTransaction(IsolationLevel isolevel) { @@ -78,7 +80,9 @@ namespace System.Data.Odbc { } override public void EnlistTransaction(SysTx.Transaction transaction) { +#if !COREFX OuterConnection.Open_EnlistTransaction(transaction); +#endif } } } diff --git a/mcs/tools/sqlsharp/SqlSharpCli.cs b/mcs/tools/sqlsharp/SqlSharpCli.cs index ca177bf6d1e..af28df050df 100644 --- a/mcs/tools/sqlsharp/SqlSharpCli.cs +++ b/mcs/tools/sqlsharp/SqlSharpCli.cs @@ -1903,4 +1903,3 @@ namespace Mono.Data.SqlSharp { } } } - diff --git a/scripts/ci/run-test-default.sh b/scripts/ci/run-test-default.sh index e5b6fa4823c..9b632eda7d3 100755 --- a/scripts/ci/run-test-default.sh +++ b/scripts/ci/run-test-default.sh @@ -32,6 +32,7 @@ else else echo "The simple test failed (maybe because of missing X server), skipping test suite." && ${TESTCMD} --label=Windows.Forms --skip; fi fi ${TESTCMD} --label=System.Data --timeout=5m make -w -C mcs/class/System.Data run-test +${TESTCMD} --label=System.Data-xunit --timeout=5m make -w -C mcs/class/System.Data run-xunit-test if [[ ${label} == w* ]]; then ${TESTCMD} --label=Mono.Data.Sqlite --skip; else ${TESTCMD} --label=Mono.Data.Sqlite --timeout=5m make -w -C mcs/class/Mono.Data.Sqlite run-test; fi ${TESTCMD} --label=System.Data.OracleClient --timeout=5m make -w -C mcs/class/System.Data.OracleClient run-test; ${TESTCMD} --label=System.Design --timeout=5m make -w -C mcs/class/System.Design run-test; -- 2.11.4.GIT