* OracleException.cs: Pass message to base ctor, thereby avoiding
authorGert Driesen <drieseng@users.sourceforge.net>
Sun, 16 Oct 2005 08:49:57 +0000 (08:49 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Sun, 16 Oct 2005 08:49:57 +0000 (08:49 -0000)
need to override Message property (and fixing API mismatch). Fixed
serialization by also adding code to si.
* OracleCommandBuilder.cs: Removed usage of DataSysDescription to
fix API mismatches.

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

mcs/class/System.Data.OracleClient/ChangeLog
mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleCommandBuilder.cs
mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleException.cs
mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleParameterCollection.cs

index a5fd5f27496eb68847c22cd8940ed189270b9caa..c173ae7785195e5cfc221785ac169a0918871c5f 100644 (file)
@@ -1,3 +1,11 @@
+2005-10-16  Gert Driesen <drieseng@users.sourceforge.net>
+
+       * OracleException.cs: Pass message to base ctor, thereby avoiding
+       need to override Message property (and fixing API mismatch). Fixed
+       serialization by also adding code to si.
+       * OracleCommandBuilder.cs: Removed usage of DataSysDescription to
+       fix API mismatches.
+
 2005-08-10  Daniel Morgan <danielmorgan@verizon.net>
 
        * System.Data.OracleClient/OracleCommandBuilder.cs: update 
 2005-08-10  Daniel Morgan <danielmorgan@verizon.net>
 
        * System.Data.OracleClient/OracleCommandBuilder.cs: update 
index 6f6348d40862cc490340b2c93bf3962488a9f8e1..8d70e8078444817c504880c06ab58aae0527d4e5 100644 (file)
@@ -85,7 +85,7 @@ namespace System.Data.OracleClient {
 
                #region Properties
 
 
                #region Properties
 
-               [DataSysDescription ("The DataAdapter for which to automatically generate OracleCommands")]
+               //[DataSysDescription ("The DataAdapter for which to automatically generate OracleCommands")]
                [DefaultValue (null)]
                public new OracleDataAdapter DataAdapter {
                        get { return adapter; }
                [DefaultValue (null)]
                public new OracleDataAdapter DataAdapter {
                        get { return adapter; }
@@ -105,7 +105,7 @@ namespace System.Data.OracleClient {
                }
 
                [Browsable (false)]
                }
 
                [Browsable (false)]
-               [DataSysDescription ("The character used in a text command as the opening quote for quoting identifiers that contain special characters.")]
+               //[DataSysDescription ("The character used in a text command as the opening quote for quoting identifiers that contain special characters.")]
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
                public 
 #if NET_2_0
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
                public 
 #if NET_2_0
@@ -121,7 +121,7 @@ namespace System.Data.OracleClient {
                }
 
                [Browsable (false)]
                }
 
                [Browsable (false)]
-               [DataSysDescription ("The character used in a text command as the closing quote for quoting identifiers that contain special characters.")]
+               //[DataSysDescription ("The character used in a text command as the closing quote for quoting identifiers that contain special characters.")]
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
                public 
 #if NET_2_0
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
                public 
 #if NET_2_0
index 3571948baf20970754f04856d249eb534aa56cb0..683151c85b25941c933d4d1c5c9c633decadd344 100644 (file)
@@ -25,23 +25,20 @@ namespace System.Data.OracleClient {
        {
                #region Fields
 
        {
                #region Fields
 
-               int code;
-               string message;
+               private int code;
 
                #endregion // Fields
 
                #region Constructors
 
 
                #endregion // Fields
 
                #region Constructors
 
-               internal OracleException (int code, string message)
+               internal OracleException (int code, string message) : base (message)
                {
                        this.code = code;
                {
                        this.code = code;
-                       this.message = message;
                }
 
                private OracleException (SerializationInfo si, StreamingContext sc) : base(si, sc)
                {
                }
 
                private OracleException (SerializationInfo si, StreamingContext sc) : base(si, sc)
                {
-                       message = si.GetString ("message");
-                       code = si.GetInt32 ("source");
+                       code = si.GetInt32 ("code");
                }
 
                #endregion // Constructors
                }
 
                #endregion // Constructors
@@ -52,10 +49,16 @@ namespace System.Data.OracleClient {
                        get { return code; }
                }
 
                        get { return code; }
                }
 
-               public override string Message {
-                       get { return message; }
+               #endregion // Properties
+
+               #region Override implementation of Exception
+
+               public override void GetObjectData (SerializationInfo si, StreamingContext context)
+               {
+                       si.AddValue ("code", code, typeof(int));
+                       base.GetObjectData (si, context);
                }
 
                }
 
-               #endregion // Properties
+               #endregion Override implementation of Exception
        }
 }
        }
 }
index aaaeeb53527f8608eeaf5379cbb0d9479e26c6ff..0d31af7dd9d6699c1fdfa2c525d71befd07c245f 100644 (file)
@@ -25,7 +25,7 @@ using System.Reflection;
 
 namespace System.Data.OracleClient {
        [ListBindable (false)]
 
 namespace System.Data.OracleClient {
        [ListBindable (false)]
-       [Editor ("Microsoft.VSDesigner.Data.Oracle.Design.DBParametersEditor, " + Consts.AssemblyMicrosoft_VSDesigner, typeof(UITypeEditor))]
+       [Editor ("Microsoft.VSDesigner.Data.Design.DBParametersEditor, " + Consts.AssemblyMicrosoft_VSDesigner, typeof(UITypeEditor))]
        public sealed class OracleParameterCollection : MarshalByRefObject, IDataParameterCollection, IList, ICollection, IEnumerable
        {
                #region Fields
        public sealed class OracleParameterCollection : MarshalByRefObject, IDataParameterCollection, IList, ICollection, IEnumerable
        {
                #region Fields