Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Coleman <tim@mono-cvs.ximian.com>2002-11-05 07:27:25 +0300
committerTim Coleman <tim@mono-cvs.ximian.com>2002-11-05 07:27:25 +0300
commitfcf980c6cf262a9b8dc7fe51a9a3212d2db2bc1f (patch)
tree02fd4c3f36182c8a3bd3ea5c760fa13228c249f8 /mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs
parente6d0053af39c716ab05c344a871146ba41cf60ee (diff)
2002-11-04 Tim Coleman <tim@timcoleman.com>
* list: Add Mono.Data.TdsClient.Internal.TdsInternalError Add Mono.Data.TdsClient.Internal.TdsInternalErrorCollection Add Mono.Data.TdsClient.Internal.TdsInternalErrorMessageEventHandler Add Mono.Data.TdsClient.Internal.TdsInternalErrorMessageEventArgs Add Mono.Data.TdsClient.Internal.TdsInternalInfoMessageEventHandler Add Mono.Data.TdsClient.Internal.TdsInternalInfoMessageEventArgs Remove Mono.Data.TdsClient.Internal.TdsPacketErrorResult Remove Mono.Data.TdsClient.Internal.TdsPacketErrorResultCollection Remove Mono.Data.TdsClient.Internal.TdsPacketMessageResult * System.Data.Common/RowUpdatedEventArgs.cs: * System.Data.Common/RowUpdatingEventArgs.cs: Implement * System.Data.SqlClient/SqlCommand.cs: * System.Data.SqlClient/SqlDataReader.cs: * System.Data.SqlClient/SqlTransaction.cs: Remove checks for errors. These are now handled by events * System.Data.SqlClient/SqlConnection.cs: * System.Data.SqlClient/SqlError.cs: * System.Data.SqlClient/SqlException.cs: * System.Data.SqlClient/SqlInfoMessageEventArgs.cs: Add event handlers and triggers for errors, messages, state change * System.Data.SqlClient/SqlParameter.cs: Re-add refreshproperties * System.Data.SqlClient/SqlRowUpdatedEventArgs.cs: * System.Data.SqlClient/SqlRowUpdatedEventHandler.cs: * System.Data.SqlClient/SqlRowUpdatingEventArgs.cs: * System.Data.SqlClient/SqlRowUpdatingEventHandler.cs: Implement svn path=/trunk/mcs/; revision=8825
Diffstat (limited to 'mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs')
-rw-r--r--mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs65
1 files changed, 39 insertions, 26 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs b/mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs
index 6d5eae65d84..d84e6a7b9bb 100644
--- a/mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs
+++ b/mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs
@@ -3,56 +3,69 @@
//
// Author:
// Rodrigo Moya (rodrigo@ximian.com)
+// Tim Coleman (tim@timcoleman.com)
//
// (C) Ximian, Inc
+// Copyright (C) Tim Coleman, 2002
//
-namespace System.Data.Common
-{
- /// <summary>
- /// Provides the data for the RowUpdating event of a .NET data provider.
- /// </summary>
+namespace System.Data.Common {
public abstract class RowUpdatingEventArgs : EventArgs
{
- [MonoTODO]
- protected RowUpdatingEventArgs(DataRow dataRow,
- IDbCommand command,
- StatementType statementType,
- DataTableMapping tableMapping) {
- throw new NotImplementedException ();
+ #region Fields
+
+ DataRow dataRow;
+ IDbCommand command;
+ StatementType statementType;
+ DataTableMapping tableMapping;
+ UpdateStatus status;
+ Exception errors;
+
+ #endregion // Fields
+
+ #region Constructors
+
+ protected RowUpdatingEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
+ {
+ this.dataRow = dataRow;
+ this.command = command;
+ this.statementType = statementType;
+ this.tableMapping = tableMapping;
+ this.status = UpdateStatus.Continue;
+ this.errors = null;
}
+
+ #endregion // Constructors
+
+ #region Properties
- [MonoTODO]
public IDbCommand Command {
- get { throw new NotImplementedException (); }
- set { throw new NotImplementedException (); }
+ get { return command; }
+ set { command = value; }
}
- [MonoTODO]
public Exception Errors {
- get { throw new NotImplementedException (); }
- set { throw new NotImplementedException (); }
+ get { return errors; }
+ set { errors = value; }
}
- [MonoTODO]
public DataRow Row {
- get { throw new NotImplementedException (); }
+ get { return dataRow; }
}
- [MonoTODO]
public StatementType StatementType {
- get { throw new NotImplementedException (); }
+ get { return statementType; }
}
- [MonoTODO]
public UpdateStatus Status {
- get { throw new NotImplementedException (); }
- set { throw new NotImplementedException (); }
+ get { return status; }
+ set { status = value; }
}
- [MonoTODO]
public DataTableMapping TableMapping {
- get { throw new NotImplementedException (); }
+ get { return tableMapping; }
}
+
+ #endregion // Properties
}
}