| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- //
- // System.Data.Common.RowUpdatedEventArgs.cs
- //
- // Author:
- // Rodrigo Moya ([email protected])
- // Tim Coleman ([email protected])
- //
- // (C) Ximian, Inc
- // Copyright (C) Tim Coleman, 2002
- //
- using System.Data;
- namespace System.Data.Common {
- public abstract class RowUpdatedEventArgs : EventArgs
- {
- #region Fields
- DataRow dataRow;
- IDbCommand command;
- StatementType statementType;
- DataTableMapping tableMapping;
- Exception errors;
- UpdateStatus status;
- int recordsAffected;
- #endregion // Fields
- #region Constructors
- [MonoTODO]
- protected RowUpdatedEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
- {
- this.dataRow = dataRow;
- this.command = command;
- this.statementType = statementType;
- this.tableMapping = tableMapping;
- this.errors = null;
- this.status = UpdateStatus.Continue;
- this.recordsAffected = 0; // FIXME
- }
- #endregion // Constructors
- #region Properties
-
- public IDbCommand Command {
- get { return command; }
- }
- public Exception Errors {
- get { return errors; }
- set { errors = value; }
- }
- public int RecordsAffected {
- get { return recordsAffected; }
- }
- 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
- }
- }
|