using System;
using System.Collections.Generic;
using System.Text;
namespace Csla.Web
{
///
/// Argument object used in the InsertObject event.
///
public class InsertObjectArgs : EventArgs
{
private System.Collections.IDictionary _values;
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 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; }
}
///
/// Create an instance of the object.
///
public InsertObjectArgs(System.Collections.IDictionary values)
{
_values = values;
}
}
}