using System;
using System.Collections.Generic;
using System.Text;
namespace Csla.Web
{
///
/// Argument object used in the UpdateObject event.
///
public class UpdateObjectArgs : EventArgs
{
private System.Collections.IDictionary _keys;
private System.Collections.IDictionary _values;
private System.Collections.IDictionary _oldValues;
private int _rowsAffected;
///
/// Gets or sets the number of rows affected
/// while handling this event.
///
///
///
///
/// The code handling the event should set this
/// value to indicate the number of rows affected
/// by the operation.
///
public int RowsAffected
{
get { return _rowsAffected; }
set { _rowsAffected = value; }
}
///
/// The list of key values entered by the user.
///
/// It is up to the event handler in the
/// web page to take the list of values, put them
/// into a business object and to save that object
/// into the database.
public System.Collections.IDictionary Keys
{
get { return _keys; }
}
///
/// The list of data values entered by the user.
///
/// It is up to the event handler in the
/// web page to take the list of values, put them
/// into a business object and to save that object
/// into the database.
public System.Collections.IDictionary Values
{
get { return _values; }
}
///
/// The list of old data values maintained by
/// data binding.
///
/// It is up to the event handler in the
/// web page to take the list of values, put them
/// into a business object and to save that object
/// into the database.
public System.Collections.IDictionary OldValues
{
get { return _oldValues; }
}
///
/// Creates an instance of the object.
///
public UpdateObjectArgs(System.Collections.IDictionary keys, System.Collections.IDictionary values, System.Collections.IDictionary oldValues)
{
_keys = keys;
_values = values;
_oldValues = oldValues;
}
}
}