* Parameter.cs: add new DbType property.
svn path=/trunk/mcs/; revision=137117
+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
}
}
+ [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); }