125 references to StatementType
netstandard (1)
netstandard.cs (1)
599
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
StatementType
))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
256
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
StatementType
))]
System.Data.Common (111)
System\Data\Common\AdapterUtil.Common.cs (34)
224
internal static ArgumentOutOfRangeException InvalidStatementType(
StatementType
value)
229
case
StatementType
.Select:
230
case
StatementType
.Insert:
231
case
StatementType
.Update:
232
case
StatementType
.Delete:
233
case
StatementType
.Batch:
238
return InvalidEnumerationValue(typeof(
StatementType
), (int)value);
258
internal static ArgumentOutOfRangeException NotSupportedStatementType(
StatementType
value, string method)
260
return NotSupportedEnumerationValue(typeof(
StatementType
), value.ToString(), method);
435
internal static InvalidOperationException UpdateConnectionRequired(
StatementType
statementType, bool isRowUpdatingCommand)
446
case
StatementType
.Insert:
449
case
StatementType
.Update:
452
case
StatementType
.Delete:
455
case
StatementType
.Batch:
459
case
StatementType
.Select:
473
internal static InvalidOperationException UpdateOpenConnectionRequired(
StatementType
statementType, bool isRowUpdatingCommand, ConnectionState state)
484
case
StatementType
.Insert:
487
case
StatementType
.Update:
490
case
StatementType
.Delete:
494
case
StatementType
.Select:
497
case
StatementType
.Batch:
511
internal static ArgumentException UnwantedStatementType(
StatementType
statementType)
575
internal static Exception UpdateConcurrencyViolation(
StatementType
statementType, int affected, int expected, DataRow[] dataRows)
580
case
StatementType
.Update:
583
case
StatementType
.Delete:
586
case
StatementType
.Batch:
590
case
StatementType
.Select:
591
case
StatementType
.Insert:
603
internal static InvalidOperationException UpdateRequiresCommand(
StatementType
statementType, bool isRowUpdatingCommand)
614
case
StatementType
.Select:
617
case
StatementType
.Insert:
620
case
StatementType
.Update:
623
case
StatementType
.Delete:
627
case
StatementType
.Batch:
System\Data\Common\DBCommandBuilder.cs (20)
874
row,
StatementType
.Insert, false
973
row,
StatementType
.Update, false
1039
row, (isUpdate ?
StatementType
.Update :
StatementType
.Delete), true
1059
row, (isUpdate ?
StatementType
.Update :
StatementType
.Delete), true
1082
row, (isUpdate ?
StatementType
.Update :
StatementType
.Delete), true
1129
StatementType
statementType,
1182
StatementType
statementType,
1544
StatementType
stmtType = rowUpdatingEvent.StatementType;
1551
case
StatementType
.Select:
1554
case
StatementType
.Insert:
1557
case
StatementType
.Update:
1560
case
StatementType
.Delete:
1606
case
StatementType
.Insert:
1609
case
StatementType
.Update:
1612
case
StatementType
.Delete:
1616
case
StatementType
.Select:
1636
protected abstract void ApplyParameterInfo(DbParameter parameter, DataRow row,
StatementType
statementType, bool whereClause);
System\Data\Common\DbDataAdapter.cs (40)
28
internal
StatementType
_statementType; // the statement type of the command, needed for accept changes
257
protected virtual RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command,
StatementType
statementType, DataTableMapping tableMapping)
262
protected virtual RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command,
StatementType
statementType, DataTableMapping tableMapping)
749
private void ParameterInput(IDataParameterCollection parameters,
StatementType
typeIndex, DataRow row, DataTableMapping mappings)
1007
StatementType
statementType =
StatementType
.Select;
1026
statementType =
StatementType
.Insert;
1030
statementType =
StatementType
.Delete;
1034
statementType =
StatementType
.Update;
1170
rowUpdatedEvent = CreateRowUpdatedEvent(dataRow, dataCommand,
StatementType
.Batch, tableMapping);
1202
ConnectionState state = UpdateConnectionOpen(connection,
StatementType
.Batch, connections, connectionStates, useSelectConnectionState);
1212
rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(
StatementType
.Batch, false, state);
1298
ConnectionState state = UpdateConnectionOpen(connection,
StatementType
.Batch, connections, connectionStates, useSelectConnectionState);
1316
rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(
StatementType
.Batch, false, state);
1394
StatementType
statementType = batchCommand._statementType;
1407
if ((
StatementType
.Update == statementType) || (
StatementType
.Delete == statementType))
1423
if (((
StatementType
.Insert == statementType) || (
StatementType
.Update == statementType))
1426
if (
StatementType
.Insert == statementType)
1453
rowUpdatedEvent.Errors = ADP.UpdateConcurrencyViolation(
StatementType
.Batch, commandCount - rowsInError.Length, commandCount, rowsInError);
1460
private static ConnectionState UpdateConnectionOpen(IDbConnection connection,
StatementType
statementType, IDbConnection?[] connections, ConnectionState[] connectionStates, bool useSelectConnectionState)
1495
private void UpdateRowExecute(RowUpdatedEventArgs rowUpdatedEvent, IDbCommand dataCommand,
StatementType
cmdIndex)
1503
if ((
StatementType
.Delete == cmdIndex) || (0 == (UpdateRowSource.FirstReturnedRecord & updatedRowSource)))
1508
else if ((
StatementType
.Insert == cmdIndex) || (
StatementType
.Update == cmdIndex))
1536
if ((
StatementType
.Insert == cmdIndex) && insertAcceptChanges)
1564
if (((
StatementType
.Insert == cmdIndex) || (
StatementType
.Update == cmdIndex))
1567
if ((
StatementType
.Insert == cmdIndex) && insertAcceptChanges)
1581
case
StatementType
.Update:
1582
case
StatementType
.Delete:
1764
throw ADP.UpdateConnectionRequired(
StatementType
.Batch, false);
1781
private static IDbConnection GetConnection4(IDbCommand command,
StatementType
statementType, bool isCommandFromRowUpdating)
1791
private static DataRowVersion GetParameterSourceVersion(
StatementType
statementType, IDataParameter parameter)
1795
case
StatementType
.Insert: return DataRowVersion.Current; // ignores parameter.SourceVersion
1796
case
StatementType
.Update: return parameter.SourceVersion;
1797
case
StatementType
.Delete: return DataRowVersion.Original; // ignores parameter.SourceVersion
1798
case
StatementType
.Select:
1799
case
StatementType
.Batch:
System\Data\Common\RowUpdatedEventArgs.cs (9)
13
private
StatementType
_statementType;
23
public RowUpdatedEventArgs(DataRow dataRow, IDbCommand? command,
StatementType
statementType, DataTableMapping tableMapping)
27
case
StatementType
.Select:
28
case
StatementType
.Insert:
29
case
StatementType
.Update:
30
case
StatementType
.Delete:
31
case
StatementType
.Batch:
95
public
StatementType
StatementType
135
_statementType =
StatementType
.Batch;
System\Data\Common\RowUpdatingEventArgs.cs (8)
9
private readonly
StatementType
_statementType;
16
public RowUpdatingEventArgs(DataRow dataRow, IDbCommand? command,
StatementType
statementType, DataTableMapping tableMapping)
22
case
StatementType
.Select:
23
case
StatementType
.Insert:
24
case
StatementType
.Update:
25
case
StatementType
.Delete:
27
case
StatementType
.Batch:
58
public
StatementType
StatementType => _statementType;
System.Data.Odbc (5)
System\Data\Odbc\OdbcCommandBuilder.cs (1)
80
protected override void ApplyParameterInfo(DbParameter parameter, DataRow datarow,
StatementType
statementType, bool whereClause)
System\Data\Odbc\OdbcDataAdapter.cs (2)
143
protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command,
StatementType
statementType, DataTableMapping tableMapping)
148
protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command,
StatementType
statementType, DataTableMapping tableMapping)
System\Data\Odbc\OdbcRowUpdatingEvent.cs (2)
22
public OdbcRowUpdatingEventArgs(DataRow row, IDbCommand? command,
StatementType
statementType, DataTableMapping tableMapping)
49
public OdbcRowUpdatedEventArgs(DataRow row, IDbCommand? command,
StatementType
statementType, DataTableMapping tableMapping)
System.Data.OleDb (7)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (7)
66
protected override void ApplyParameterInfo(System.Data.Common.DbParameter parameter, System.Data.DataRow datarow, System.Data.
StatementType
statementType, bool whereClause) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }
178
protected override System.Data.Common.RowUpdatedEventArgs CreateRowUpdatedEvent(System.Data.DataRow dataRow, System.Data.IDbCommand? command, System.Data.
StatementType
statementType, System.Data.Common.DataTableMapping tableMapping) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }
179
protected override System.Data.Common.RowUpdatingEventArgs CreateRowUpdatingEvent(System.Data.DataRow dataRow, System.Data.IDbCommand? command, System.Data.
StatementType
statementType, System.Data.Common.DataTableMapping tableMapping) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }
428
public OleDbRowUpdatedEventArgs(System.Data.DataRow dataRow, System.Data.IDbCommand? command, System.Data.
StatementType
statementType, System.Data.Common.DataTableMapping tableMapping) : base (default(System.Data.DataRow), default(System.Data.IDbCommand), default(System.Data.
StatementType
), default(System.Data.Common.DataTableMapping)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }
434
public OleDbRowUpdatingEventArgs(System.Data.DataRow dataRow, System.Data.IDbCommand? command, System.Data.
StatementType
statementType, System.Data.Common.DataTableMapping tableMapping) : base (default(System.Data.DataRow), default(System.Data.IDbCommand), default(System.Data.
StatementType
), default(System.Data.Common.DataTableMapping)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }