System.Data.Common.RowUpdatingEventArgs.RowUpdatingEventArgs C# (CSharp) Method

RowUpdatingEventArgs() public method

public RowUpdatingEventArgs ( DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping )
dataRow System.Data.DataRow
command IDbCommand
statementType StatementType
tableMapping DataTableMapping
        public RowUpdatingEventArgs(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
        {
            ADP.CheckArgumentNull(dataRow, nameof(dataRow));
            ADP.CheckArgumentNull(tableMapping, nameof(tableMapping));
            switch (statementType)
            {
                case StatementType.Select:
                case StatementType.Insert:
                case StatementType.Update:
                case StatementType.Delete:
                    break;
                case StatementType.Batch:
                    throw ADP.NotSupportedStatementType(statementType, nameof(RowUpdatingEventArgs));
                default:
                    throw ADP.InvalidStatementType(statementType);
            }
            _dataRow = dataRow;
            _command = command; // maybe null
            _statementType = statementType;
            _tableMapping = tableMapping;
        }
RowUpdatingEventArgs