2002-11-09 Rodrigo Moya <rodrigo@ximian.com>
authorRodrigo Moya <rodrigo@mono-cvs.ximian.com>
Sun, 10 Nov 2002 01:17:38 +0000 (01:17 -0000)
committerRodrigo Moya <rodrigo@mono-cvs.ximian.com>
Sun, 10 Nov 2002 01:17:38 +0000 (01:17 -0000)
* System.Data.OleDb/OleDbDataAdapter.cs: cleaned up implementation,
based on the PgSql/SqlClient data adapter classes.

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

mcs/class/System.Data/ChangeLog
mcs/class/System.Data/System.Data.OleDb/OleDbDataAdapter.cs

index fbc9e5ef73255a9cfae1132d641821f65ed13c4f..666689aaf6088102e48f14d2fb22f0aabfb71f1c 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-09  Rodrigo Moya <rodrigo@ximian.com>
+
+       * System.Data.OleDb/OleDbDataAdapter.cs: cleaned up implementation,
+       based on the PgSql/SqlClient data adapter classes.
+
 2002-11-09  Tim Coleman <tim@timcoleman.com>
        * list:
                Add new internal tds classes
index dfd3057c5bc0dff53542b5848cc8a98b9f315245..cdd50d1f847753ead5642faef4517077ad90022c 100644 (file)
@@ -169,123 +169,37 @@ namespace System.Data.OleDb
 
                #region Methods
 
-               public int Fill (DataTable dataTable, object ADODBRecordSet)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               public int Fill (DataSet dataSet, object ADODBRecordSet, string srcTable)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               public override int Fill (DataSet dataSet)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               protected override int Fill (DataTable dataTable, IDataReader dataReader)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               protected override int Fill (DataTable dataTable,
-                                            IDbCommand command,
-                                            CommandBehavior behavior)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               protected override int Fill (DataSet dataSet,
-                                            string srcTable,
-                                            IDataReader dataReader,
-                                            int startRecord,
-                                            int maxRecords)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               protected override int Fill (DataSet dataSet,
-                                            int startRecord,
-                                            int maxRecords,
-                                            string srcTable,
-                                            IDbCommand command,
-                                            CommandBehavior behavior)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               public override DataTable[] FillSchema (DataSet dataSet,
-                                                       SchemaType schemaType)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               protected override DataTable FillSchema (DataTable dataTable,
-                                                        SchemaType schemaType,
-                                                        IDbCommand command,
-                                                        CommandBehavior behavior)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               protected override DataTable[] FillSchema (DataSet dataSet,
-                                                          SchemaType schemaType,
-                                                          IDbCommand command,
-                                                          string srcTable,
-                                                          CommandBehavior behavior)
-               {
-                       throw new NotImplementedException ();
-               }
-               
                protected override RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow,
                                                                              IDbCommand command,
                                                                              StatementType statementType,
-                                                                             DataTableMapping tableMapping)
+                                                                             DataTableMapping tableMapping) 
                {
-                       return new OleDbRowUpdatedEventArgs (dataRow, command,
-                                                            statementType, tableMapping);
+                       return new OleDbRowUpdatedEventArgs (dataRow, command, statementType, tableMapping);
                }
 
+
                protected override RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow,
                                                                                IDbCommand command,
                                                                                StatementType statementType,
-                                                                               DataTableMapping tableMapping)
+                                                                               DataTableMapping tableMapping) 
                {
-                       return new OleDbRowUpdatingEventArgs (dataRow, command,
-                                                             statementType, tableMapping);
+                       return new OleDbRowUpdatingEventArgs (dataRow, command, statementType, tableMapping);
                }
 
-               public override IDataParameter[] GetFillParameters ()
+               protected override void OnRowUpdated (RowUpdatedEventArgs value) 
                {
-                       throw new NotImplementedException ();
-               }
-               
-               protected override void OnRowUpdated (RowUpdatedEventArgs value)
-               {
-                       OleDbRowUpdatedEventHandler handler = (OleDbRowUpdatedEventHandler) Events[EventRowUpdated];
+                       OleDbRowUpdatedEventHandler handler = (OleDbRowUpdatedEventHandler) Events[EventRowUpdated];
                        if ((handler != null) && (value is OleDbRowUpdatedEventArgs))
-                               handler (this, (OleDbRowUpdatedEventArgs) value);
+                               handler (this, (OleDbRowUpdatedEventArgs) value);
                }
 
-               protected override void OnRowUpdating (RowUpdatingEventArgs value)
+               protected override void OnRowUpdating (RowUpdatingEventArgs value) 
                {
-                       OleDbRowUpdatingEventHandler handler = (OleDbRowUpdatingEventHandler) Events[EventRowUpdated];
+                       OleDbRowUpdatingEventHandler handler = (OleDbRowUpdatingEventHandler) Events[EventRowUpdating];
                        if ((handler != null) && (value is OleDbRowUpdatingEventArgs))
-                               handler (this, (OleDbRowUpdatingEventArgs) value);
-               }
-
-               public override int Update (DataSet dataSet)
-               {
-                       throw new NotImplementedException ();
+                               handler (this, (OleDbRowUpdatingEventArgs) value);
                }
-
-               protected override int Update (DataRow[] dataRows,
-                                              DataTableMapping tableMapping)
-               {
-                       throw new NotImplementedException ();
-               }
-
+               
                #endregion // Methods
 
                #region Events and Delegates