2 // SqlCommandBuilder.cs
5 // Rolf Bjarne Kvinge <rolf@xamarin.com>
7 // Copyright (c) 2016 Xamarin, Inc.
9 // Permission is hereby granted, free of charge, to any person obtaining a copy
10 // of this software and associated documentation files (the "Software"), to deal
11 // in the Software without restriction, including without limitation the rights
12 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 // copies of the Software, and to permit persons to whom the Software is
14 // furnished to do so, subject to the following conditions:
16 // The above copyright notice and this permission notice shall be included in
17 // all copies or substantial portions of the Software.
19 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29 using System.Data.Common;
30 using System.Data.SqlClient;
32 namespace System.Data.SqlClient
34 public class SqlCommandBuilder : DbCommandBuilder
36 const string EXCEPTION_MESSAGE = "System.Data.SqlClient.SqlCommandBuilder is not supported on the current platform.";
38 public SqlCommandBuilder ()
40 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
43 public SqlCommandBuilder (SqlDataAdapter adapter)
45 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
48 public static void DeriveParameters (SqlCommand command)
50 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
53 public SqlCommand GetDeleteCommand ()
55 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
58 public SqlCommand GetInsertCommand ()
60 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
63 public SqlCommand GetUpdateCommand ()
65 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
68 public SqlCommand GetUpdateCommand (bool useColumnsForParameterNames)
70 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
73 public SqlCommand GetDeleteCommand (bool useColumnsForParameterNames)
75 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
78 public SqlCommand GetInsertCommand (bool useColumnsForParameterNames)
80 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
83 public override string QuoteIdentifier (string unquotedIdentifier)
85 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
88 public override string UnquoteIdentifier (string quotedIdentifier)
90 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
93 protected override void ApplyParameterInfo (DbParameter parameter, DataRow datarow, StatementType statementType, bool whereClause)
95 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
98 protected override string GetParameterName (int parameterOrdinal)
100 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
103 protected override string GetParameterName (string parameterName)
105 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
108 protected override string GetParameterPlaceholder (int parameterOrdinal)
110 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
113 protected override void SetRowUpdatingHandler (DbDataAdapter adapter)
115 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
118 protected override DataTable GetSchemaTable (DbCommand srcCommand)
120 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
123 protected override DbCommand InitializeCommand (DbCommand command)
125 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
128 public SqlDataAdapter DataAdapter {
129 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
130 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
133 public override string QuotePrefix {
134 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
135 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
138 public override string QuoteSuffix {
139 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
140 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
143 public override string CatalogSeparator {
144 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
145 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
148 public override string SchemaSeparator {
149 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
150 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
153 public override CatalogLocation CatalogLocation {
154 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
155 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }