diff options
author | Tim Coleman <tim@mono-cvs.ximian.com> | 2002-11-05 07:27:25 +0300 |
---|---|---|
committer | Tim Coleman <tim@mono-cvs.ximian.com> | 2002-11-05 07:27:25 +0300 |
commit | fcf980c6cf262a9b8dc7fe51a9a3212d2db2bc1f (patch) | |
tree | 02fd4c3f36182c8a3bd3ea5c760fa13228c249f8 /mcs/class/System.Data/System.Data.Common | |
parent | e6d0053af39c716ab05c344a871146ba41cf60ee (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')
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs | 60 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs | 65 |
2 files changed, 80 insertions, 45 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs b/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs index ab3aebe4451..53a121617ba 100644 --- a/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs +++ b/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs @@ -3,62 +3,84 @@ // // Author: // Rodrigo Moya (rodrigo@ximian.com) +// Tim Coleman (tim@timcoleman.com) // // (C) Ximian, Inc +// Copyright (C) Tim Coleman, 2002 // using System.Data; -namespace System.Data.Common -{ - /// <summary> - /// Provides data for the RowUpdated event of a .NET data provider. - /// </summary> +namespace System.Data.Common { public abstract class RowUpdatedEventArgs : EventArgs { + #region Fields + + DataRow dataRow; + IDbCommand command; + StatementType statementType; + DataTableMapping tableMapping; + Exception errors; + UpdateStatus status; + int recordsAffected; + + #endregion // Fields + + #region Constructors + [MonoTODO] - protected RowUpdatedEventArgs(DataRow dataRow, - IDbCommand command, - StatementType statementType, - DataTableMapping tableMapping) { - throw new NotImplementedException (); + protected 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 + + #region Properties [MonoTODO] public IDbCommand Command { - get { throw new NotImplementedException (); } + get { return command; } } [MonoTODO] public Exception Errors { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } + get { return errors; } + set { errors = value; } } [MonoTODO] public int RecordsAffected { - get { throw new NotImplementedException (); } + get { return recordsAffected; } } [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 } } 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 } } |