Ver código fonte

2004-03-10 Umadevi S ([email protected])
* SqlCommand.cs - Implemented EditorAttribute and DesignerAttribute

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

Umadevi S 22 anos atrás
pai
commit
37fed03ce9

+ 3 - 1
mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs

@@ -25,6 +25,7 @@ using System.Text;
 using System.Xml;
 
 namespace System.Data.SqlClient {
+	[DesignerAttribute ("Microsoft.VSDesigner.Data.VS.SqlCommandDesigner, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.ComponentModel.Design.IDesigner")]
 	public sealed class SqlCommand : Component, IDbCommand, ICloneable
 	{
 		#region Fields
@@ -86,6 +87,7 @@ namespace System.Data.SqlClient {
 		[DataCategory ("Data")]
 		[DataSysDescription ("Command text to execute.")]
 		[DefaultValue ("")]
+		[EditorAttribute ("Microsoft.VSDesigner.Data.SQL.Design.SqlCommandTextEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )]
 		[RefreshProperties (RefreshProperties.All)]
 		public string CommandText {
 			get { return commandText; }
@@ -123,7 +125,7 @@ namespace System.Data.SqlClient {
 		[DataCategory ("Behavior")]
 		[DefaultValue (null)]
 		[DataSysDescription ("Connection used by the command.")]
-		public SqlConnection Connection {
+		[EditorAttribute ("Microsoft.VSDesigner.Data.Design.DbConnectionEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )]		public SqlConnection Connection {
 			get { return connection; }
 			set { 
 				if (transaction != null && connection.Transaction != null && connection.Transaction.IsOpen)