mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* 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
72 lines
1.4 KiB
C#
72 lines
1.4 KiB
C#
//
|
|
// System.Data.Common.RowUpdatingEventArgs.cs
|
|
//
|
|
// Author:
|
|
// Rodrigo Moya ([email protected])
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// (C) Ximian, Inc
|
|
// Copyright (C) Tim Coleman, 2002
|
|
//
|
|
|
|
namespace System.Data.Common {
|
|
public abstract class RowUpdatingEventArgs : EventArgs
|
|
{
|
|
#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
|
|
|
|
public IDbCommand Command {
|
|
get { return command; }
|
|
set { command = value; }
|
|
}
|
|
|
|
public Exception Errors {
|
|
get { return errors; }
|
|
set { errors = value; }
|
|
}
|
|
|
|
public DataRow Row {
|
|
get { return dataRow; }
|
|
}
|
|
|
|
public StatementType StatementType {
|
|
get { return statementType; }
|
|
}
|
|
|
|
public UpdateStatus Status {
|
|
get { return status; }
|
|
set { status = value; }
|
|
}
|
|
|
|
public DataTableMapping TableMapping {
|
|
get { return tableMapping; }
|
|
}
|
|
|
|
#endregion // Properties
|
|
}
|
|
}
|