RowUpdatingEventArgs.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // System.Data.Common.RowUpdatingEventArgs.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. namespace System.Data.Common {
  12. public abstract class RowUpdatingEventArgs : EventArgs
  13. {
  14. #region Fields
  15. DataRow dataRow;
  16. IDbCommand command;
  17. StatementType statementType;
  18. DataTableMapping tableMapping;
  19. UpdateStatus status;
  20. Exception errors;
  21. #endregion // Fields
  22. #region Constructors
  23. protected RowUpdatingEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
  24. {
  25. this.dataRow = dataRow;
  26. this.command = command;
  27. this.statementType = statementType;
  28. this.tableMapping = tableMapping;
  29. this.status = UpdateStatus.Continue;
  30. this.errors = null;
  31. }
  32. #endregion // Constructors
  33. #region Properties
  34. public IDbCommand Command {
  35. get { return command; }
  36. set { command = value; }
  37. }
  38. public Exception Errors {
  39. get { return errors; }
  40. set { errors = value; }
  41. }
  42. public DataRow Row {
  43. get { return dataRow; }
  44. }
  45. public StatementType StatementType {
  46. get { return statementType; }
  47. }
  48. public UpdateStatus Status {
  49. get { return status; }
  50. set { status = value; }
  51. }
  52. public DataTableMapping TableMapping {
  53. get { return tableMapping; }
  54. }
  55. #endregion // Properties
  56. }
  57. }