2002-07-11 Rodrigo Moya <rodrigo@ximian.com>
authorRodrigo Moya <rodrigo@mono-cvs.ximian.com>
Thu, 11 Jul 2002 17:25:36 +0000 (17:25 -0000)
committerRodrigo Moya <rodrigo@mono-cvs.ximian.com>
Thu, 11 Jul 2002 17:25:36 +0000 (17:25 -0000)
* libgda.cs: added new libgda functions and some enumerations.

* OleDbParameter.cs (IsNullable): removed explicit implementation
of the set method for this property.

* OleDbDataAdapter.cs (MissingMappingAction): implemented.
(MissingSchemaAction): implemented.

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

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

index 24266700ba3fd56367d800bb9e39a046021bffe5..afbf83399cb4542ea8f3aac87582629fbc0d996b 100644 (file)
@@ -1,3 +1,13 @@
+2002-07-11  Rodrigo Moya <rodrigo@ximian.com>
+
+       * libgda.cs: added new libgda functions and some enumerations.
+
+       * OleDbParameter.cs (IsNullable): removed explicit implementation
+       of the set method for this property.
+
+       * OleDbDataAdapter.cs (MissingMappingAction): implemented.
+       (MissingSchemaAction): implemented.
+
 2002-07-10  Tim Coleman <tim@timcoleman.com>
        * OleDbCommandBuilder.cs: Added new methods, properties
        * OleDbConnection.cs: Modified constructor
@@ -27,7 +37,6 @@
        * OleDbType.cs: Fixed two typos
        * libgda.cs: Style changes, added new methods
 
-
 2002-06-03  Rodrigo Moya <rodrigo@ximian.com>
 
        * OleDbParameterCollection.cs (GetEnumerator, SyncRoot,
index 9f487a21ce32334c4394120b7dcba2a278e4a15e..3c784076cdfdf57140a70f6f901c4d048fe9ea6e 100644 (file)
@@ -24,6 +24,8 @@ namespace System.Data.OleDb
                OleDbCommand insertCommand;
                OleDbCommand selectCommand;
                OleDbCommand updateCommand;
+               MissingMappingAction missingMappingAction;
+               MissingSchemaAction missingSchemaAction;
 
                static readonly object EventRowUpdated = new object ();
                static readonly object EventRowUpdating = new object ();
@@ -106,6 +108,16 @@ namespace System.Data.OleDb
                        }
                }
 
+               MissingMappingAction IDataAdapter.MissingMappingAction {
+                       get { return missingMappingAction; }
+                       set { missingMappingAction = value; }
+               }
+
+               MissingSchemaAction IDataAdapter.MissingSchemaAction {
+                       get { return missingSchemaAction; }
+                       set { missingSchemaAction = value; }
+               }
+               
                IDbCommand IDbDataAdapter.UpdateCommand {
                        get { return UpdateCommand; }
                        set { 
index 319bfb29d40f53ea4e05a35f449dd34726ebf3c6..fc9d2aa486149b98d385ce52db1f521d5745bcbc 100644 (file)
@@ -106,7 +106,6 @@ namespace System.Data.OleDb
                
                public bool IsNullable {
                        get { return isNullable; }
-                       set { isNullable = value; }
                }
 
                public OleDbType OleDbType {
index e4149f82545606018b9908a22651e3e0336d7ba3..4c0065b7799bc0e33b44f66e4c96b43c2baceae1 100644 (file)
@@ -15,6 +15,21 @@ using System.Runtime.InteropServices;
 
 namespace System.Data.OleDb
 {
+       internal enum GdaCommandOptions {
+               IgnoreErrors = 1,
+               StopOnErrors = 1 << 1,
+               BadOption = 1 << 2,
+       };
+
+       internal enum GdaCommandType {
+               Sql = 0,
+               Xml = 1,
+               Procedure = 2,
+               Table = 3,
+               Schema = 4,
+               Invalid = 5
+       };
+       
        sealed internal class libgda
        {
                private static IntPtr m_gdaClient = IntPtr.Zero;
@@ -75,6 +90,7 @@ namespace System.Data.OleDb
 
                [DllImport("gda-2")]
                public static extern IntPtr gda_transaction_set_name (IntPtr xaction, string name);
+       
                [DllImport("gda-2")]
                public static extern bool gda_connection_begin_transaction (IntPtr cnc, IntPtr xaction);