RowUpdatedEventArgs.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // System.Data.Common.RowUpdatedEventArgs.cs
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. // Tim Coleman ([email protected])
  7. //
  8. // (C) Ximian, Inc
  9. // Copyright (C) Tim Coleman, 2002
  10. //
  11. using System.Data;
  12. namespace System.Data.Common {
  13. public abstract class RowUpdatedEventArgs : EventArgs
  14. {
  15. #region Fields
  16. DataRow dataRow;
  17. IDbCommand command;
  18. StatementType statementType;
  19. DataTableMapping tableMapping;
  20. Exception errors;
  21. UpdateStatus status;
  22. int recordsAffected;
  23. #endregion // Fields
  24. #region Constructors
  25. [MonoTODO]
  26. protected RowUpdatedEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
  27. {
  28. this.dataRow = dataRow;
  29. this.command = command;
  30. this.statementType = statementType;
  31. this.tableMapping = tableMapping;
  32. this.errors = null;
  33. this.status = UpdateStatus.Continue;
  34. this.recordsAffected = 0; // FIXME
  35. }
  36. #endregion // Constructors
  37. #region Properties
  38. public IDbCommand Command {
  39. get { return command; }
  40. }
  41. public Exception Errors {
  42. get { return errors; }
  43. set { errors = value; }
  44. }
  45. public int RecordsAffected {
  46. get { return recordsAffected; }
  47. }
  48. public DataRow Row {
  49. get { return dataRow; }
  50. }
  51. public StatementType StatementType {
  52. get { return statementType; }
  53. }
  54. public UpdateStatus Status {
  55. get { return status; }
  56. set { status = value; }
  57. }
  58. public DataTableMapping TableMapping {
  59. get { return tableMapping; }
  60. }
  61. #endregion // Properties
  62. }
  63. }