Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmadevi S <uma@mono-cvs.ximian.com>2004-05-14 08:46:17 +0400
committerUmadevi S <uma@mono-cvs.ximian.com>2004-05-14 08:46:17 +0400
commitcdf38c8cb31b662938d805d751a53fe2e3866fa6 (patch)
tree053d6e3a2b0e04b205fb9d73f7b0111c56e972e5 /mcs/class/System.Data/System.Data.OleDb
parentd1b83f96c249ff3462e44dbfe1d06090dd1ae183 (diff)
2004-05-14 Umadevi S (sumadevi@novell.com)
* OleDbParameter.cs - Completed implementing all the attributes svn path=/trunk/mcs/; revision=27335
Diffstat (limited to 'mcs/class/System.Data/System.Data.OleDb')
-rw-r--r--mcs/class/System.Data/System.Data.OleDb/ChangeLog4
-rw-r--r--mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs28
2 files changed, 31 insertions, 1 deletions
diff --git a/mcs/class/System.Data/System.Data.OleDb/ChangeLog b/mcs/class/System.Data/System.Data.OleDb/ChangeLog
index 40bc5a88b25..e282ebdf7b9 100644
--- a/mcs/class/System.Data/System.Data.OleDb/ChangeLog
+++ b/mcs/class/System.Data/System.Data.OleDb/ChangeLog
@@ -1,3 +1,7 @@
+2004-05-14 Umadevi S (sumadevi@novell.com)
+ * OleDbParameter.cs - Completed implementing all the attributes
+
+
2004-05-13 Umadevi S (sumadevi@novell.com)
* OleDbDataReader.cs - Stubbed HasRows method
- Implemented EditorBrowsableAttribute
diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs
index 05411be55d8..f779d48fb99 100644
--- a/mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs
+++ b/mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs
@@ -78,7 +78,8 @@ namespace System.Data.OleDb
{
this.sourceColumn = srcColumn;
}
-
+
+ [EditorBrowsableAttribute (EditorBrowsableState.Advanced)]
public OleDbParameter(string name, OleDbType dataType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string srcColumn, DataRowVersion srcVersion, object value)
: this (name, dataType, size, srcColumn)
{
@@ -106,16 +107,25 @@ namespace System.Data.OleDb
}
}
+ [DataSysDescriptionAttribute ("Input, output, or bidirectional parameter")] [DefaultValue (ParameterDirection.Input)]
public ParameterDirection Direction {
get { return direction; }
set { direction = value; }
}
+ [BrowsableAttribute (false)]
+ [DataSysDescriptionAttribute ("A design-time property used for strongly typed code generation")]
+ [DesignOnlyAttribute (true)]
+ [EditorBrowsableAttribute (EditorBrowsableState.Advanced)]
+ [DefaultValue (false)]
public bool IsNullable {
get { return isNullable; }
set { isNullable = value; }
}
+ [DefaultValue (OleDbType.VarWChar)]
+ [DataSysDescriptionAttribute ("The parameter native type")]
+ [RefreshPropertiesAttribute (RefreshProperties.All)]
public OleDbType OleDbType {
get { return oleDbType; }
set {
@@ -124,36 +134,52 @@ namespace System.Data.OleDb
}
}
+ [DefaultValue ("")]
+ [DataSysDescriptionAttribute ("Name of the parameter")]
public string ParameterName {
get { return name; }
set { name = value; }
}
+ [DefaultValue (0)]
+ [DataSysDescriptionAttribute ("For decimal, numeric, varnumeric DBTypes")]
public byte Precision {
get { return precision; }
set { precision = value; }
}
+ [DefaultValue (0)]
+ [DataSysDescriptionAttribute ("For decimal, numeric, varnumeric DBTypes")]
public byte Scale {
get { return scale; }
set { scale = value; }
}
+
+ [DefaultValue (0)]
+ [DataSysDescriptionAttribute ("Size of variable length data types (string & arrays)")]
public int Size {
get { return size; }
set { size = value; }
}
+ [DefaultValue ("")]
+ [DataSysDescriptionAttribute ("When used by a DataAdapter.Update, the source column name that is used to find the DataSetColumn name in the ColumnMappings. This is to copy a value between the parameter and a datarow")]
public string SourceColumn {
get { return sourceColumn; }
set { sourceColumn = value; }
}
+ [DefaultValue (DataRowVersion.Current)]
+ [DataSysDescriptionAttribute ("When used by a DataAdapter.Update(UpdateCommand only), the version of the DataRow value that is used to update the data source")]
public DataRowVersion SourceVersion {
get { return sourceVersion; }
set { sourceVersion = value; }
}
+ [DefaultValue (null)]
+ [DataSysDescriptionAttribute ("value of the parameter")]
+ [TypeConverter (typeof (StringConverter))]
public object Value {
get { return value; }
set { this.value = value; }