+2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * OdbcParameter.cs: added missing attributes
+ * OdbcPermission.cs: added missing attributes
+ * OdbcConnection.cs: fixes attribute, added missing attributes
+ * OdbcInfoMessageEventArgs.cs: removed extra properties, fixed
+ API compatibility with MS.NET
+ * OdbcCommandBuilder.cs: use correct attributes
+
2004-05-20 Gert Driesen (drieseng@users.sourceforge.net)
* OdbcPermissionAttribute.cs: change AllowMultiple and
#region Properties
- [DataSysDescriptionAttribute ("The DataAdapter for which to automatically generate OleDbCommands")]
+ [OdbcDescriptionAttribute ("The DataAdapter for which to automatically generate OdbcCommands")]
[DefaultValue (null)]
public OdbcDataAdapter DataAdapter {
get {
}
[BrowsableAttribute (false)]
- [DataSysDescriptionAttribute ("The prefix string wrapped around sql objects")]
+ [OdbcDescriptionAttribute ("The prefix string wrapped around sql objects")]
[DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
public string QuotePrefix {
get {
}
[BrowsableAttribute (false)]
- [DataSysDescriptionAttribute ("The suffix string wrapped around sql objects")]
+ [OdbcDescriptionAttribute ("The suffix string wrapped around sql objects")]
[DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
public string QuoteSuffix {
get {
get { return hdbc; }
}
- [DataCategory ("Data")]
+ [OdbcCategoryAttribute ("DataCategory_Data")]
[DefaultValue ("")]
[OdbcDescriptionAttribute ("Information used to connect to a Data Source")]
[RefreshPropertiesAttribute (RefreshProperties.All)]
#region Events and Delegates
+ [OdbcDescription ("DbConnection_StateChange")]
+ [OdbcCategory ("DataCategory_StateChange")]
public event StateChangeEventHandler StateChange;
+ [OdbcDescription ("DbConnection_InfoMessage")]
+ [OdbcCategory ("DataCategory_InfoMessage")]
public event OdbcInfoMessageEventHandler InfoMessage;
#endregion
#region Properties
- public int ErrorCode {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
public OdbcErrorCollection Errors {
[MonoTODO]
get { throw new NotImplementedException (); }
}
- public string Source {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
-
#endregion // Properties
#region Methods
this.sourceColumn = srcColumn;
}
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
public OdbcParameter(string name, OdbcType dataType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string srcColumn, DataRowVersion srcVersion, object value)
: this (name, dataType, size, srcColumn)
{
}
}
+ [OdbcDescription ("DataParameter_ParameterName")]
+ [DefaultValue ("")]
public string ParameterName {
get { return name; }
set { name = value; }
}
+ [OdbcDescription ("DbDataParameter_Precision")]
+ [OdbcCategory ("DataCategory_Data")]
+ [DefaultValue (0)]
public byte Precision {
get { return precision; }
set { precision = value; }
}
+ [OdbcDescription ("DbDataParameter_Scale")]
+ [OdbcCategory ("DataCategory_Data")]
+ [DefaultValue (0)]
public byte Scale {
get { return scale; }
set { scale = value; }
}
+ [OdbcDescription ("DbDataParameter_Size")]
+ [OdbcCategory ("DataCategory_Data")]
+ [DefaultValue (0)]
public int Size {
get { return size; }
set { size = value; }
}
+ [OdbcDescription ("DataParameter_SourceColumn")]
+ [OdbcCategory ("DataCategory_Data")]
+ [DefaultValue ("")]
public string SourceColumn {
get { return sourceColumn; }
set { sourceColumn = value; }
}
+ [OdbcDescription ("DataParameter_SourceVersion")]
+ [OdbcCategory ("DataCategory_Data")]
+ [DefaultValue (512)]
public DataRowVersion SourceVersion {
get { return sourceVersion; }
set { sourceVersion = value; }
}
-
+
+ [TypeConverter (typeof(StringConverter))]
+ [OdbcDescription ("DataParameter_Value")]
+ [OdbcCategory ("DataCategory_Data")]
+ [DefaultValue (null)]
public object Value {
get {
return ParamValue;
#region Constructors
[MonoTODO]
+#if NET_1_1
+ [Obsolete ("use OdbcPermission(PermissionState.None)", true)]
+#endif
public OdbcPermission () : base (PermissionState.None)
{
throw new NotImplementedException ();
}
[MonoTODO]
+#if NET_1_1
+ [Obsolete ("use OdbcPermission(PermissionState.None)", true)]
+#endif
public OdbcPermission (PermissionState state)
: base (state)
{