[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / class / System.Data / System.Data.SqlClient / SqlDataAdapter.platformnotsupported.cs
blobc1a39fe42e3c9f4c11906407576bade0904dbc7d
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System;
6 using System.Collections;
7 using System.ComponentModel;
8 using System.Data.Common;
9 using System.Diagnostics;
11 namespace System.Data.SqlClient
13 public sealed class SqlDataAdapter : DbDataAdapter, IDbDataAdapter, ICloneable
15 const string EXCEPTION_MESSAGE = "System.Data.SqlClient.SqlDataAdapter is not supported on the current platform.";
17 public SqlDataAdapter() : base() {}
18 public SqlDataAdapter(SqlCommand selectCommand) : this() {}
19 public SqlDataAdapter(string selectCommandText, string selectConnectionString) : this() {}
20 public SqlDataAdapter(string selectCommandText, SqlConnection selectConnection) : this() {}
22 new public SqlCommand DeleteCommand {
23 get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
24 set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
27 IDbCommand IDbDataAdapter.DeleteCommand {
28 get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
29 set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
32 new public SqlCommand InsertCommand {
33 get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
34 set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
37 IDbCommand IDbDataAdapter.InsertCommand {
38 get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
39 set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
42 new public SqlCommand SelectCommand {
43 get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
44 set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
47 IDbCommand IDbDataAdapter.SelectCommand {
48 get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
49 set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
52 new public SqlCommand UpdateCommand {
53 get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
54 set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
57 IDbCommand IDbDataAdapter.UpdateCommand {
58 get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
59 set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
62 public override int UpdateBatchSize {
63 get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
64 set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
67 protected override int AddToBatch(IDbCommand command)
68 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
70 protected override void ClearBatch()
71 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
73 protected override int ExecuteBatch()
74 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
76 protected override IDataParameter GetBatchedParameter(int commandIdentifier, int parameterIndex)
77 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
79 protected override bool GetBatchedRecordsAffected(int commandIdentifier, out int recordsAffected, out Exception error)
80 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
82 protected override void InitializeBatching()
83 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
85 protected override void TerminateBatching()
86 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
88 object ICloneable.Clone()
89 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
91 protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
92 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
94 protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
95 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
97 public event SqlRowUpdatedEventHandler RowUpdated;
98 public event SqlRowUpdatingEventHandler RowUpdating;
100 override protected void OnRowUpdated(RowUpdatedEventArgs value)
101 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
103 override protected void OnRowUpdating(RowUpdatingEventArgs value)
104 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);