SqlRowUpdatingEventArgs.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // System.Data.SqlClient.SqlRowUpdatingEventArgs.cs
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. // Daniel Morgan ([email protected])
  7. // Tim Coleman ([email protected])
  8. //
  9. // (C) Ximian, Inc 2002
  10. // Copyright (C) Tim Coleman, 2002
  11. //
  12. using System;
  13. using System.Data;
  14. using System.Data.Common;
  15. namespace System.Data.SqlClient {
  16. public sealed class SqlRowUpdatingEventArgs : RowUpdatingEventArgs
  17. {
  18. #region Fields
  19. SqlCommand command;
  20. #endregion // Fields
  21. #region Constructors
  22. [MonoTODO]
  23. public SqlRowUpdatingEventArgs (DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
  24. : base (row, command, statementType, tableMapping)
  25. {
  26. if (!(command is SqlCommand))
  27. throw new InvalidCastException ("Command is not a SqlCommand object.");
  28. this.command = (SqlCommand) command;
  29. }
  30. #endregion // Constructors
  31. #region Properties
  32. public new SqlCommand Command {
  33. get { return command; }
  34. set { command = value; }
  35. }
  36. #endregion // Properties
  37. }
  38. }