using System.Data;
-namespace System.Data.Common {
- public abstract class RowUpdatedEventArgs : EventArgs
+namespace System.Data.Common
+{
+ public
+#if !NET_2_0
+ abstract
+#endif
+ class RowUpdatedEventArgs : EventArgs
{
#region Fields
DataRow dataRow;
IDbCommand command;
StatementType statementType;
- DataTableMapping tableMapping;
+ DataTableMapping tableMapping;
Exception errors;
UpdateStatus status;
int recordsAffected;
#region Constructors
- [MonoTODO]
- protected RowUpdatedEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
+#if NET_2_0
+ public
+#else
+ protected
+#endif
+ RowUpdatedEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
{
this.dataRow = dataRow;
this.command = command;
this.statementType = statementType;
this.tableMapping = tableMapping;
- this.errors = null;
this.status = UpdateStatus.Continue;
- this.recordsAffected = 0; // FIXME
}
#endregion // Constructors
}
public Exception Errors {
- get {
- if (errors == null)
- errors = new DataException ("RowUpdatedEvent: No additional information is available!");
- return errors;
- }
+ get {
+ if (errors == null)
+ errors = new DataException ("RowUpdatedEvent: No additional information is available!");
+ return errors;
+ }
set { errors = value; }
}
get { return tableMapping; }
}
+#if NET_2_0
+ public int RowCount {
+ get { return 0; }
+ }
+#endif
+
#endregion // Properties
+
+ #region Methods
+
+#if NET_2_0
+ public void CopyToRows (DataRow[] array)
+ {
+ }
+
+ public void CopyToRows (DataRow[] array, int arrayIndex)
+ {
+ }
+#endif
+
+ #endregion //Methods
}
}