Просмотр исходного кода

2004-07-09 Umadevi S <[email protected]>
* Modified classes ISqlCommand.cs, ISqlConnection.cs,ISqlExecutionContext.cs, InvalidUdtException.cs,TriggerAction.cs : Added missing methods,properties,constructors

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

Umadevi S 21 лет назад
Родитель
Сommit
152ad12e08

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

@@ -1,3 +1,6 @@
+2004-07-09 Umadevi S <[email protected]>
+	* Modified classes ISqlCommand.cs, ISqlConnection.cs,ISqlExecutionContext.cs, InvalidUdtException.cs,TriggerAction.cs : Added missing methods,properties,constructors
+
 2004-07-09 Umadevi S <[email protected]>
 	* Added IUdtSerializationContext.cs, SqlFacetAttribute.cs
 

+ 3 - 2
mcs/class/System.Data/System.Data.Sql/ISqlCommand.cs

@@ -39,7 +39,7 @@ namespace System.Data.Sql {
 	{
 		#region Properties
 
-		ISqlConnection Connection { get; }
+		ISqlConnection Connection { get; set; }
 		SqlNotificationRequest Notification { get; set; }
 		ISqlParameterCollection Parameters { get; }
 		ISqlTransaction Transaction { get; set; }
@@ -49,10 +49,11 @@ namespace System.Data.Sql {
 		#region Methods
 
 		ISqlParameter CreateParameter ();
+
 		ISqlReader ExecutePageReader (CommandBehavior behavior, int startRow, int pageSize);
 		ISqlReader ExecuteReader ();
 		ISqlReader ExecuteReader (CommandBehavior behavior);
-		ISqlResultSet ExecuteResultSet (ResultSetOptions options);
+ 		ISqlResultSet ExecuteResultSet (ResultSetOptions options);
 		ISqlResultSet ExecuteResultSet (ResultSetOptions options, string cursorname);
 		ISqlRecord ExecuteRow ();
 		object ExecuteSqlScalar ();

+ 5 - 1
mcs/class/System.Data/System.Data.Sql/ISqlConnection.cs

@@ -1,8 +1,9 @@
 //
 // System.Data.Sql.ISqlConnection
 //
-// Author:
+// Authors:
 //   Tim Coleman ([email protected])
+//   Umadevi S ([email protected])
 //
 // Copyright (C) Tim Coleman, 2003
 //
@@ -48,6 +49,9 @@ namespace System.Data.Sql {
 		ISqlTransaction BeginTransaction (IsolationLevel iso);
 		ISqlTransaction BeginTransaction (string transactionName);
 		ISqlTransaction BeginTransaction (IsolationLevel iso, string transactionName);
+		ISqlCommand CreateCommand ();
+		ISqlCommand CreateCommand (string commandText);
+		ISqlExecutionContext CreateExecutionContext (SqlDefinition sqlDefinition);
 
 		#endregion // Methods
 	}

+ 3 - 1
mcs/class/System.Data/System.Data.Sql/ISqlExecutionContext.cs

@@ -39,9 +39,10 @@ namespace System.Data.Sql {
 	{
 		#region Properties
 
-		ISqlConnection Connection { get; }
+		ISqlConnection Connection { get; set; }
 		SqlNotificationRequest Notification { get; set; }
 		ISqlTransaction Transaction { get; set; }
+		
 
 		#endregion // Properties
 
@@ -55,6 +56,7 @@ namespace System.Data.Sql {
 		ISqlRecord ExecuteRow ();
 		object ExecuteSqlScalar ();
 		XmlReader ExecuteXmlReader ();
+		
 
 		#endregion // Methods
 	}

+ 30 - 2
mcs/class/System.Data/System.Data.Sql/InvalidUdtException.cs

@@ -1,8 +1,9 @@
 //
 // System.Data.Sql.InvalidUdtException
 //
-// Author:
+// Authors:
 //   Tim Coleman ([email protected])
+//   Umadevi S ([email protected])	
 //
 // Copyright (C) Tim Coleman, 2003
 //
@@ -35,8 +36,35 @@
 using System;
 
 namespace System.Data.Sql {
-	public sealed class InvalidUdtException : Exception
+	public sealed class InvalidUdtException : SystemException
 	{
+		#region constructors 
+		
+		[MonoTODO]
+		public InvalidUdtException ()
+		{}
+		
+		[MonoTODO]
+		public InvalidUdtException (string message)	
+		{}
+
+		[MonoTODO]
+		public InvalidUdtException (string message, Exception innerException)
+		{}
+
+		[MonoTODO]
+		public InvalidUdtException (Type t, string reason)
+		{}
+
+		#endregion
+
+
+		#region methods
+
+		[MonoTODO]
+		public override void GetObjectData (SerializationInfo si, StreamingContext context)
+		{}
+		#endregion
 	}
 }
 

+ 11 - 11
mcs/class/System.Data/System.Data.Sql/TriggerAction.cs

@@ -1,12 +1,12 @@
 //
 // System.Data.Sql.TriggerAction
 //
-// Author:
+// Authors:
 //   Tim Coleman ([email protected])
+//   Umadevi S ([email protected])
 //
 // Copyright (C) Tim Coleman, 2003
 //
-
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 //
@@ -29,20 +29,20 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-
+   
 #if NET_2_0
 
 namespace System.Data.Sql {
 	public enum TriggerAction
 	{
-		AlterAppRole,
-		AlterAssembly,
-		AlterBinding,
-		AlterFunction,
-		AlterIndex,
-		AlterLogin,
-		AlterPartitionFunction,
-		AlterPartitionScheme,
+		AlterAppRole = 138,
+		AlterAssembly = 102,
+		AlterBinding = 175,
+		AlterFunction = 62,
+		AlterIndex = 25,
+		AlterLogin = 145,
+		AlterPartitionFunction = 195,
+		AlterPartitionScheme = 52,
 		AlterProcedure,
 		AlterQueue,
 		AlterRole,