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