114 references to StatementType
System.Data (114)
fx\src\data\System\Data\Common\AdapterUtil.cs (23)
648static internal ArgumentOutOfRangeException InvalidStatementType(StatementType value) { 660return InvalidEnumerationValue(typeof(StatementType), (int) value); 697static internal ArgumentOutOfRangeException NotSupportedStatementType(StatementType value, string method) { 698return NotSupportedEnumerationValue(typeof(StatementType), value.ToString(), method); 1105static internal InvalidOperationException UpdateConnectionRequired(StatementType statementType, bool isRowUpdatingCommand) { 1112case StatementType.Insert: 1115case StatementType.Update: 1118case StatementType.Delete: 1121case StatementType.Batch: 1153static internal InvalidOperationException UpdateOpenConnectionRequired(StatementType statementType, bool isRowUpdatingCommand, ConnectionState state) { 1160case StatementType.Insert: 1163case StatementType.Update: 1166case StatementType.Delete: 1243static internal ArgumentException UnwantedStatementType(StatementType statementType) { 1297static internal Exception UpdateConcurrencyViolation(StatementType statementType, int affected, int expected, DataRow[] dataRows) { 1300case StatementType.Update: 1303case StatementType.Delete: 1306case StatementType.Batch: 1323static internal InvalidOperationException UpdateRequiresCommand(StatementType statementType, bool isRowUpdatingCommand) { 1330case StatementType.Select: 1333case StatementType.Insert: 1336case StatementType.Update: 1339case StatementType.Delete:
fx\src\data\System\Data\Common\DBCommandBuilder.cs (19)
780row, StatementType.Insert, false 872row, StatementType.Update, false 934row, (isUpdate ? StatementType.Update : StatementType.Delete), true 953row, (isUpdate ? StatementType.Update : StatementType.Delete), true 976row, (isUpdate ? StatementType.Update : StatementType.Delete), true 1017StatementType statementType, 1064StatementType statementType, 1369StatementType stmtType = rowUpdatingEvent.StatementType; 1374case StatementType.Select: 1377case StatementType.Insert: 1380case StatementType.Update: 1383case StatementType.Delete: 1430case StatementType.Insert: 1433case StatementType.Update: 1436case StatementType.Delete: 1460abstract protected void ApplyParameterInfo(DbParameter parameter, DataRow row, StatementType statementType, bool whereClause); // V1.2.3300
fx\src\data\System\Data\Common\DbDataAdapter.cs (40)
35internal StatementType StatementType; // the statement type of the command, needed for accept changes 228virtual protected RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) { // V1.0.3300 232virtual protected RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) { // V1.0.3300 628private void ParameterInput(IDataParameterCollection parameters, StatementType typeIndex, DataRow row, DataTableMapping mappings) { 843StatementType statementType = StatementType.Select; 859statementType = StatementType.Insert; 863statementType = StatementType.Delete; 867statementType = StatementType.Update; 988rowUpdatedEvent = CreateRowUpdatedEvent(dataRow, dataCommand, StatementType.Batch, tableMapping); 1014ConnectionState state = UpdateConnectionOpen(connection, StatementType.Batch, connections, connectionStates, useSelectConnectionState); 1022rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(StatementType.Batch, false, state); 1096ConnectionState state = UpdateConnectionOpen(connection, StatementType.Batch, connections, connectionStates, useSelectConnectionState); 1111rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(StatementType.Batch, false, state); 1181StatementType statementType = batchCommand.StatementType; 1192if ((StatementType.Update == statementType) || (StatementType.Delete == statementType)) { 1205if (((StatementType.Insert == statementType) || (StatementType.Update == statementType)) 1208if (StatementType.Insert == statementType) { // MDAC 64199 1230rowUpdatedEvent.Errors = ADP.UpdateConcurrencyViolation(StatementType.Batch, commandCount - rowsInError.Length, commandCount, rowsInError); // MDAC 55735 1237private ConnectionState UpdateConnectionOpen(IDbConnection connection, StatementType statementType, IDbConnection[] connections, ConnectionState[] connectionStates, bool useSelectConnectionState) { 1266private void UpdateRowExecute(RowUpdatedEventArgs rowUpdatedEvent, IDbCommand dataCommand, StatementType cmdIndex) { 1273if ((StatementType.Delete == cmdIndex) || (0 == (UpdateRowSource.FirstReturnedRecord & updatedRowSource))) { 1277else if ((StatementType.Insert == cmdIndex) || (StatementType.Update == cmdIndex)) { 1297if ((StatementType.Insert == cmdIndex) && insertAcceptChanges) { // MDAC 64199 1322if (((StatementType.Insert == cmdIndex) || (StatementType.Update == cmdIndex)) 1325if ((StatementType.Insert == cmdIndex) && insertAcceptChanges) { // MDAC 64199 1336case StatementType.Update: 1337case StatementType.Delete: 1490throw ADP.UpdateConnectionRequired(StatementType.Batch, false); 1505static private IDbConnection GetConnection4(DbDataAdapter adapter, IDbCommand command, StatementType statementType, bool isCommandFromRowUpdating) { 1513static private DataRowVersion GetParameterSourceVersion(StatementType statementType, IDataParameter parameter) { 1515case StatementType.Insert: return DataRowVersion.Current; // ignores parameter.SourceVersion 1516case StatementType.Update: return parameter.SourceVersion; 1517case StatementType.Delete: return DataRowVersion.Original; // ignores parameter.SourceVersion 1518case StatementType.Select: 1519case StatementType.Batch:
fx\src\data\System\Data\Common\RowUpdatedEventArgs.cs (9)
22private StatementType _statementType; 32public RowUpdatedEventArgs(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) { 34case StatementType.Select: 35case StatementType.Insert: 36case StatementType.Update: 37case StatementType.Delete: 38case StatementType.Batch: 89public StatementType StatementType { 120_statementType = StatementType.Batch;
fx\src\data\System\Data\Common\RowUpdatingEventArgs.cs (8)
20private StatementType _statementType; 27public RowUpdatingEventArgs(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) { 31case StatementType.Select: 32case StatementType.Insert: 33case StatementType.Update: 34case StatementType.Delete: 36case StatementType.Batch: 81public StatementType StatementType {
fx\src\data\System\Data\Odbc\OdbcCommandBuilder.cs (1)
85override protected void ApplyParameterInfo(DbParameter parameter, DataRow datarow, StatementType statementType, bool whereClause) {
fx\src\data\System\Data\Odbc\OdbcDataAdapter.cs (2)
153override protected RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) { 157override protected RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) {
fx\src\data\System\Data\Odbc\OdbcRowUpdatingEvent.cs (2)
30public OdbcRowUpdatingEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) 53public OdbcRowUpdatedEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (1)
80override protected void ApplyParameterInfo(DbParameter parameter, DataRow datarow, StatementType statementType, bool whereClause) {
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (2)
152override protected RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) { 156override protected RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) {
fx\src\data\System\Data\OleDb\OleDbRowUpdatedEvent.cs (1)
17public OleDbRowUpdatedEventArgs(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
fx\src\data\System\Data\OleDb\OleDbRowUpdatingEvent.cs (1)
17public OleDbRowUpdatingEventArgs(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (1)
160override protected void ApplyParameterInfo(DbParameter parameter, DataRow datarow, StatementType statementType, bool whereClause) {
fx\src\data\System\Data\SqlClient\SqlDataAdapter.cs (2)
182override protected RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) { 186override protected RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) {
fx\src\data\System\Data\SqlClient\SqlRowUpdatedEvent.cs (1)
18public SqlRowUpdatedEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
fx\src\data\System\Data\SqlClient\SqlRowUpdatingEvent.cs (1)
16public SqlRowUpdatingEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)