File: SqlDataAdapter.platformnotsupported.cs

package info (click to toggle)
mono 5.18.0.240%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,253,216 kB
  • sloc: cs: 10,925,936; xml: 2,804,987; ansic: 643,970; cpp: 120,384; perl: 59,272; asm: 21,383; sh: 20,162; makefile: 18,157; python: 4,715; pascal: 924; sql: 859; sed: 16; php: 1
file content (106 lines) | stat: -rw-r--r-- 4,409 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// 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.ComponentModel;
using System.Data.Common;
using System.Diagnostics;

namespace System.Data.SqlClient
{
	public sealed class SqlDataAdapter : DbDataAdapter, IDbDataAdapter, ICloneable
	{
		const string EXCEPTION_MESSAGE = "System.Data.SqlClient.SqlDataAdapter is not supported on the current platform.";

		public SqlDataAdapter() : base() {}
		public SqlDataAdapter(SqlCommand selectCommand) : this() {}
		public SqlDataAdapter(string selectCommandText, string selectConnectionString) : this() {}
		public SqlDataAdapter(string selectCommandText, SqlConnection selectConnection) : this() {}

		new public SqlCommand DeleteCommand {
			get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
			set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
		}

		IDbCommand IDbDataAdapter.DeleteCommand {
			get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
			set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
		}

		new public SqlCommand InsertCommand {
			get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
			set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
		}

		IDbCommand IDbDataAdapter.InsertCommand {
			get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
			set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
		}

		new public SqlCommand SelectCommand {
			get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
			set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
		}

		IDbCommand IDbDataAdapter.SelectCommand {
			get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
			set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
		}

		new public SqlCommand UpdateCommand {
			get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
			set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
		}

		IDbCommand IDbDataAdapter.UpdateCommand {
			get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
			set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
		}

		public override int UpdateBatchSize {
			get => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
			set => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
		}

		protected override int AddToBatch(IDbCommand command)
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		protected override void ClearBatch()
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		protected override int ExecuteBatch()
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		protected override IDataParameter GetBatchedParameter(int commandIdentifier, int parameterIndex)
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		protected override bool GetBatchedRecordsAffected(int commandIdentifier, out int recordsAffected, out Exception error)
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		protected override void InitializeBatching()
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		protected override void TerminateBatching()
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		object ICloneable.Clone()
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		public event SqlRowUpdatedEventHandler RowUpdated;
		public event SqlRowUpdatingEventHandler RowUpdating;

		override protected void OnRowUpdated(RowUpdatedEventArgs value)
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);

		override protected void OnRowUpdating(RowUpdatingEventArgs value)
			=> throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
	}
}