[DefaultEvent ("RowUpdated")]
[DesignerAttribute ("Microsoft.VSDesigner.Data.VS.OdbcDataAdapterDesigner, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.ComponentModel.Design.IDesigner")]
[ToolboxItemAttribute ("Microsoft.VSDesigner.Data.VS.OdbcDataAdapterToolboxItem, "+ Consts.AssemblyMicrosoft_VSDesigner)]
- public sealed class OdbcDataAdapter : DbDataAdapter, IDbDataAdapter
+ public sealed class OdbcDataAdapter : DbDataAdapter, IDbDataAdapter, ICloneable
{
#region Fields
- bool disposed = false;
+#if ONLY_1_1
+ bool disposed = false;
+#endif
OdbcCommand deleteCommand;
OdbcCommand insertCommand;
OdbcCommand selectCommand;
#region Constructors
- public OdbcDataAdapter ()
- : this (new OdbcCommand ())
+ public OdbcDataAdapter () : this (new OdbcCommand ())
{
}
[OdbcDescription ("Used during Update for deleted rows in DataSet.")]
[DefaultValue (null)]
[EditorAttribute ("Microsoft.VSDesigner.Data.Design.DBCommandEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )]
- public OdbcCommand DeleteCommand {
+ public new OdbcCommand DeleteCommand {
get { return deleteCommand; }
set { deleteCommand = value; }
}
[OdbcDescription ("Used during Update for new rows in DataSet.")]
[DefaultValue (null)]
[EditorAttribute ("Microsoft.VSDesigner.Data.Design.DBCommandEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )]
- public OdbcCommand InsertCommand {
+ public new OdbcCommand InsertCommand {
get { return insertCommand; }
set { insertCommand = value; }
}
[OdbcDescription ("Used during Fill/FillSchema.")]
[DefaultValue (null)]
[EditorAttribute ("Microsoft.VSDesigner.Data.Design.DBCommandEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )]
- public OdbcCommand SelectCommand {
+ public new OdbcCommand SelectCommand {
get { return selectCommand; }
set { selectCommand = value; }
}
[OdbcDescription ("Used during Update for modified rows in DataSet.")]
[DefaultValue (null)]
[EditorAttribute ("Microsoft.VSDesigner.Data.Design.DBCommandEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )]
- public OdbcCommand UpdateCommand {
+ public new OdbcCommand UpdateCommand {
get { return updateCommand; }
set { updateCommand = value; }
}
return new OdbcRowUpdatingEventArgs (dataRow, command, statementType, tableMapping);
}
+#if ONLY_1_1
protected override void Dispose (bool disposing)
{
if (!disposed) {
disposed = true;
}
}
+#endif
protected override void OnRowUpdated (RowUpdatedEventArgs value)
{
RowUpdating (this, (OdbcRowUpdatingEventArgs) value);
}
+ [MonoTODO]
+ object ICloneable.Clone ()
+ {
+ throw new NotImplementedException ();
+ }
+
#endregion // Methods
#region Events and Delegates