2009-06-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 29 Jun 2009 22:10:45 +0000 (22:10 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 29 Jun 2009 22:10:45 +0000 (22:10 -0000)
* Parameter.cs: add new DbType property.

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

mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/Parameter.cs

index 0441f310a3fc318d3133e3da221a3a1abf4e7d2e..27ab9fde35cec9f47221d74c21142c96822c2fe0 100644 (file)
@@ -1,3 +1,7 @@
+2009-06-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * Parameter.cs: add new DbType property.
+
 2009-06-16  Marek Habersack  <mhabersack@novell.com>
 
        * IPersistedSelector.cs: removed AspNetHostingPermission
index 13fee47fd7a1ae02741c4cacf7ded40d420a98b5..79a8d05037eb9ef79ad92a09ab19e1dcd567c776 100644 (file)
@@ -191,6 +191,25 @@ namespace System.Web.UI.WebControls {
                        }
                }
 
+               [WebCategoryAttribute ("Parameter")]
+               [DefaultValueAttribute (DbType.Object)]
+               [WebSysDescriptionAttribute ("Parameter's DbType.")]
+               public DbType DbType
+               {
+                       get {
+                               object o = ViewState ["DbType"];
+                               if (o == null)
+                                       return DbType.Object;
+                               return (DbType) o;
+                       }
+                       set {
+                               if (DbType != value) {
+                                       ViewState ["DbType"] = value;
+                                       OnParameterChanged ();
+                               }
+                       }
+               }
+
                [DefaultValue (0)]
                public int Size {
                        get { return ViewState.GetInt ("Size", 0); }