diff options
author | Steve Pfister <steveisok@gmail.com> | 2019-03-06 20:30:19 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-03-07 12:03:14 +0300 |
commit | 6a9950c5d22a1d748a2163ce6bdbc7fa6ffd8e77 (patch) | |
tree | 98cf5998178997f5caa35e0fa8c0e649192c7f66 /mcs/class/referencesource | |
parent | c96df417d1c36a2f5adac42a67bdcece566cb354 (diff) |
* System.Data.Linq now points to reference source
* Created SR and Strings helpers as refsrc resources are
missing / incomplete
* Moved existing tests into the Test folder
* Moved old DBLinq code into tools/sqlmetal as there are no other
alternatives.
Diffstat (limited to 'mcs/class/referencesource')
-rw-r--r-- | mcs/class/referencesource/System.Data.Linq/SqlClient/Query/SqlParameterizer.cs | 4 | ||||
-rw-r--r-- | mcs/class/referencesource/System.Data.Linq/misc/SecurityUtils.cs | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/mcs/class/referencesource/System.Data.Linq/SqlClient/Query/SqlParameterizer.cs b/mcs/class/referencesource/System.Data.Linq/SqlClient/Query/SqlParameterizer.cs index 9dce2be1d38..e353f2927b2 100644 --- a/mcs/class/referencesource/System.Data.Linq/SqlClient/Query/SqlParameterizer.cs +++ b/mcs/class/referencesource/System.Data.Linq/SqlClient/Query/SqlParameterizer.cs @@ -233,7 +233,11 @@ namespace System.Data.Linq.SqlClient { this.parameterizer.annotations.Add( node, new SqlServerCompatibilityAnnotation( +#if (MONO) + Strings.MaxSizeNotSupported(node.SourceExpression), SqlProvider.ProviderMode.Sql2000)); +#else SqlClient.Strings.MaxSizeNotSupported(node.SourceExpression), SqlProvider.ProviderMode.Sql2000)); +#endif return false; } diff --git a/mcs/class/referencesource/System.Data.Linq/misc/SecurityUtils.cs b/mcs/class/referencesource/System.Data.Linq/misc/SecurityUtils.cs index 7a86773c1a8..364728f8aaf 100644 --- a/mcs/class/referencesource/System.Data.Linq/misc/SecurityUtils.cs +++ b/mcs/class/referencesource/System.Data.Linq/misc/SecurityUtils.cs @@ -7,7 +7,9 @@ /* */ - +#if MONO +namespace System.Data.Linq +#else #if Microsoft_NAMESPACE namespace System.Windows.Forms #elif DRAWING_NAMESPACE @@ -23,6 +25,7 @@ #else namespace System.Windows.Forms #endif +#endif { using System; using System.Reflection; |