Author: kostat
Date: 2007-01-14 05:31:51 -0500 (Sun, 14 Jan 2007)
New Revision: 70975

Modified:
   
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceStatusEventArgs.cs
Log:
implemented ObjectDataSourceStatusEventArgs.AffectedRows propoerty

Modified: 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceStatusEventArgs.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceStatusEventArgs.cs
     2007-01-14 09:52:36 UTC (rev 70974)
+++ 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceStatusEventArgs.cs
     2007-01-14 10:31:51 UTC (rev 70975)
@@ -36,18 +36,15 @@
 {
        public class ObjectDataSourceStatusEventArgs : EventArgs
        {
-               private object returnVal; 
-               private IDictionary outPutParam;
-               private Exception exception;
+               private readonly object returnVal;
+               private readonly IDictionary outPutParam;
+               private readonly Exception exception;
                private bool exceptionHandled;
-               
+               private int affectedRows;
+
                public ObjectDataSourceStatusEventArgs (object returnVal, 
IDictionary outPutParam)
-               {
-                       this.returnVal = returnVal;
-                       this.outPutParam = outPutParam;
-                       this.exception = null;
-                       this.exceptionHandled = false;
-               }
+                       :
+                       this (returnVal, outPutParam, null) { }
                
                public ObjectDataSourceStatusEventArgs (object returnVal, 
IDictionary outPutParam, Exception e)
                {
@@ -55,7 +52,13 @@
                        this.outPutParam = outPutParam;
                        this.exception = e;
                        this.exceptionHandled = false;
+                       this.affectedRows = -1;
                }
+
+               public int AffectedRows {
+                       get { return affectedRows; }
+                       set { affectedRows = value; }
+               }
                
                public Exception Exception {
                        get { return exception; }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to