From fcf980c6cf262a9b8dc7fe51a9a3212d2db2bc1f Mon Sep 17 00:00:00 2001 From: Tim Coleman Date: Tue, 5 Nov 2002 04:27:25 +0000 Subject: 2002-11-04 Tim Coleman * 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 --- .../System.Data.Common/RowUpdatingEventArgs.cs | 65 +++++++++++++--------- 1 file changed, 39 insertions(+), 26 deletions(-) (limited to 'mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs') 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 -{ - /// - /// Provides the data for the RowUpdating event of a .NET data provider. - /// +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 } } -- cgit v1.2.3