84 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Text;
 | |
| 
 | |
| namespace Csla.Web
 | |
| {
 | |
|   /// <summary>
 | |
|   /// Argument object used in the UpdateObject event.
 | |
|   /// </summary>
 | |
|   public class UpdateObjectArgs : EventArgs
 | |
|   {
 | |
| 
 | |
|     private System.Collections.IDictionary _keys;
 | |
|     private System.Collections.IDictionary _values;
 | |
|     private System.Collections.IDictionary _oldValues;
 | |
|     private int _rowsAffected;
 | |
| 
 | |
|     /// <summary>
 | |
|     /// Gets or sets the number of rows affected
 | |
|     /// while handling this event.
 | |
|     /// </summary>
 | |
|     /// <value></value>
 | |
|     /// <returns></returns>
 | |
|     /// <remarks>
 | |
|     /// The code handling the event should set this
 | |
|     /// value to indicate the number of rows affected
 | |
|     /// by the operation.
 | |
|     /// </remarks>
 | |
|     public int RowsAffected
 | |
|     {
 | |
|       get { return _rowsAffected; }
 | |
|       set { _rowsAffected = value; }
 | |
|     }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// The list of key values entered by the user.
 | |
|     /// </summary>
 | |
|     /// <remarks>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.</remarks>
 | |
|     public System.Collections.IDictionary Keys
 | |
|     {
 | |
|       get { return _keys; }
 | |
|     }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// The list of data values entered by the user.
 | |
|     /// </summary>
 | |
|     /// <remarks>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.</remarks>
 | |
|     public System.Collections.IDictionary Values
 | |
|     {
 | |
|       get { return _values; }
 | |
|     }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// The list of old data values maintained by
 | |
|     /// data binding.
 | |
|     /// </summary>
 | |
|     /// <remarks>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.</remarks>
 | |
|     public System.Collections.IDictionary OldValues
 | |
|     {
 | |
|       get { return _oldValues; }
 | |
|     }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// Creates an instance of the object.
 | |
|     /// </summary>
 | |
|     public UpdateObjectArgs(System.Collections.IDictionary keys, System.Collections.IDictionary values, System.Collections.IDictionary oldValues)
 | |
|     {
 | |
|       _keys = keys;
 | |
|       _values = values;
 | |
|       _oldValues = oldValues;
 | |
|     }
 | |
| 
 | |
|   }
 | |
| }
 |