Переглянути джерело

ChangeLog: Updated.
SqlDataSource.cs: Updated Select method definition.
SqlDataSourceStatusEventArgs.cs: Updated class.


svn path=/trunk/mcs/; revision=36257

Sanja Gupta 21 роки тому
батько
коміт
8737162b0e

+ 5 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,8 @@
+2004-11-18 Sanjay Gupta <[email protected]>
+
+	* SqlDataSource.cs: Updated Select method definition.
+	* SqlDataSourceStatusEventArgs.cs: Updated class.
+	 
 2004-11-15 Lluis Sanchez Gual <[email protected]>
 
 	* SqlDataSourceView.cs: Removed implementation of Events (it is inherited

+ 5 - 2
mcs/class/System.Web/System.Web.UI.WebControls/SqlDataSource.cs

@@ -78,9 +78,12 @@ namespace System.Web.UI.WebControls {
 			return View.Delete (null, null);
 		}
 		
-		public IEnumerable Select ()
+		public IEnumerable Select (DataSourceSelectArguments args)
 		{
-			return View.Select (null);
+			//View.Selecting;
+			IEnumerable enums = View.Select (null);
+			//View.Selected;
+			return enums;
 		}
 		
 		public int Update ()

+ 20 - 10
mcs/class/System.Web/System.Web.UI.WebControls/SqlDataSourceStatusEventArgs.cs

@@ -3,8 +3,10 @@
 //
 // Authors:
 //	Ben Maurer ([email protected])
+//	Sanjay Gupta ([email protected])
 //
 // (C) 2003 Ben Maurer
+// (C) 2004 Novell, Inc. (http://www.novell.com)
 //
 
 //
@@ -32,31 +34,39 @@
 using System.Collections;
 using System.Collections.Specialized;
 using System.Text;
+using System.Data;
 
 namespace System.Web.UI.WebControls {
 	public class SqlDataSourceStatusEventArgs : EventArgs {
-		public SqlDataSourceStatusEventArgs (IOrderedDictionary outputParameters, object returnValue, int rowsAffected)
+		public SqlDataSourceStatusEventArgs (IDbCommand command, int rowsAffected, Exception exception)
 		{
-			this.outputParameters = outputParameters;
-			this.returnValue = returnValue;
+			this.command = command;
 			this.rowsAffected = rowsAffected;
+			this.exception = exception;
+			this.exceptionHandled = false;
 		}
 		
-		IOrderedDictionary outputParameters;
-		object returnValue;
+		IDbCommand command;
+		Exception exception;
 		int rowsAffected;
+		bool exceptionHandled;
 		
-		public IOrderedDictionary OutputParameters {
-			get { return outputParameters; }
+		public IDbCommand Command {
+			get { return command; }
 		}
 		
-		public object ReturnValue {
-			get { return returnValue; }
+		public Exception Exception {
+			get { return exception; }
 		}
 		
-		public int RowsAffected {
+		public int AffectedRows {
 			get { return rowsAffected; }
 		}
+
+		public bool ExceptionHandled {
+			get { return exceptionHandled; }
+			set { exceptionHandled = value; }
+		}
 	}
 }
 #endif