RowUpdatedEventArgs.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. [MonoTODO]
  39. public IDbCommand Command {
  40. get { return command; }
  41. }
  42. [MonoTODO]
  43. public Exception Errors {
  44. get { return errors; }
  45. set { errors = value; }
  46. }
  47. [MonoTODO]
  48. public int RecordsAffected {
  49. get { return recordsAffected; }
  50. }
  51. [MonoTODO]
  52. public DataRow Row {
  53. get { return dataRow; }
  54. }
  55. [MonoTODO]
  56. public StatementType StatementType {
  57. get { return statementType; }
  58. }
  59. [MonoTODO]
  60. public UpdateStatus Status {
  61. get { return status; }
  62. set { status = value; }
  63. }
  64. [MonoTODO]
  65. public DataTableMapping TableMapping {
  66. get { return tableMapping; }
  67. }
  68. #endregion // Properties
  69. }
  70. }