Files
mono/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs
T
Tim Coleman fcf980c6cf 2002-11-04 Tim Coleman <[email protected]>
* 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
2002-11-05 04:27:25 +00:00

87 lines
1.6 KiB
C#

//
// System.Data.Common.RowUpdatedEventArgs.cs
//
// Author:
// Rodrigo Moya ([email protected])
// Tim Coleman ([email protected])
//
// (C) Ximian, Inc
// Copyright (C) Tim Coleman, 2002
//
using System.Data;
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)
{
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 { return command; }
}
[MonoTODO]
public Exception Errors {
get { return errors; }
set { errors = value; }
}
[MonoTODO]
public int RecordsAffected {
get { return recordsAffected; }
}
[MonoTODO]
public DataRow Row {
get { return dataRow; }
}
[MonoTODO]
public StatementType StatementType {
get { return statementType; }
}
[MonoTODO]
public UpdateStatus Status {
get { return status; }
set { status = value; }
}
[MonoTODO]
public DataTableMapping TableMapping {
get { return tableMapping; }
}
#endregion // Properties
}
}