| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- //
- // System.Data.Common.RowUpdatingEventArgs.cs
- //
- // Author:
- // Rodrigo Moya ([email protected])
- // Tim Coleman ([email protected])
- //
- // (C) Ximian, Inc
- // Copyright (C) Tim Coleman, 2002
- //
- namespace System.Data.Common {
- public abstract class RowUpdatingEventArgs : EventArgs
- {
- #region Fields
- DataRow dataRow;
- IDbCommand command;
- StatementType statementType;
- DataTableMapping tableMapping;
- UpdateStatus status;
- Exception errors;
- #endregion // Fields
- #region Constructors
- protected RowUpdatingEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
- {
- this.dataRow = dataRow;
- this.command = command;
- this.statementType = statementType;
- this.tableMapping = tableMapping;
- this.status = UpdateStatus.Continue;
- this.errors = null;
- }
- #endregion // Constructors
- #region Properties
-
- public IDbCommand Command {
- get { return command; }
- set { command = value; }
- }
- public Exception Errors {
- get { return errors; }
- set { errors = value; }
- }
- public DataRow Row {
- get { return dataRow; }
- }
- public StatementType StatementType {
- get { return statementType; }
- }
- public UpdateStatus Status {
- get { return status; }
- set { status = value; }
- }
- public DataTableMapping TableMapping {
- get { return tableMapping; }
- }
- #endregion // Properties
- }
- }
|