Ver código fonte

2002-11-12 Tim Coleman <[email protected]>
* System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
Complete these classes
* System.Data.Common/DbDataAdapter.cs:
Experimental support for FillSchema ()

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

Tim Coleman 23 anos atrás
pai
commit
f207a8ecd6

+ 3 - 0
mcs/class/System.Data/ChangeLog

@@ -1,4 +1,7 @@
 2002-11-12  Tim Coleman <[email protected]>
+	* System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
+	* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
+		Complete these classes
 	* System.Data.Common/DbDataAdapter.cs:
 		Experimental support for FillSchema ()
 

+ 1 - 11
mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventArgs.cs

@@ -17,21 +17,11 @@ using System.Data.Common;
 namespace System.Data.SqlClient {
 	public sealed class SqlRowUpdatedEventArgs : RowUpdatedEventArgs 
 	{
-		#region Fields
-		
-		SqlCommand command;
-
-		#endregion // Fields
-
 		#region Constructors
 
-		[MonoTODO]
 		public SqlRowUpdatedEventArgs (DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) 
 			: base (row, command, statementType, tableMapping)
 		{
-			if (!(command is SqlCommand))
-				throw new InvalidCastException ("Command is not a SqlCommand object.");
-			this.command = (SqlCommand) command;
 		}
 
 		#endregion // Constructors
@@ -39,7 +29,7 @@ namespace System.Data.SqlClient {
 		#region Properties
 
 		public new SqlCommand Command {
-			get { return command; }
+			get { return (SqlCommand) base.Command; }
 		}
 
 		#endregion // Properties

+ 0 - 9
mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventArgs.cs

@@ -17,20 +17,11 @@ using System.Data.Common;
 namespace System.Data.SqlClient {
 	public sealed class SqlRowUpdatingEventArgs : RowUpdatingEventArgs
 	{
-		#region Fields
-
-		SqlCommand command = null;
-
-		#endregion // Fields
-
 		#region Constructors
 
-		[MonoTODO]
 		public SqlRowUpdatingEventArgs (DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) 
 			: base (row, command, statementType, tableMapping)
 		{
-			if (command != null)
-				this.command = (SqlCommand) command;
 		}
 
 		#endregion // Constructors