SqlRowUpdatedEventArgs.cs 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // System.Data.SqlClient.SqlRowUpdatedEventArgs.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 SqlRowUpdatedEventArgs : RowUpdatedEventArgs
  17. {
  18. #region Fields
  19. SqlCommand command;
  20. #endregion // Fields
  21. #region Constructors
  22. [MonoTODO]
  23. public SqlRowUpdatedEventArgs (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. }
  35. #endregion // Properties
  36. }
  37. }