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: