Author: anagappan
Date: 2007-07-22 02:54:05 -0400 (Sun, 22 Jul 2007)
New Revision: 82426

Modified:
   trunk/mcs/class/System.Data/System.Data/ChangeLog
   trunk/mcs/class/System.Data/System.Data/DataColumn.cs
   trunk/mcs/class/System.Data/System.Data/DataRow.cs
Log:
2007-07-22  Nagappan A  <[EMAIL PROTECTED]>

        * DataRow.cs: Added internal set property for Table in 2.0
        profile.

        * DataColumn.cs: Added internal set property for Table in 2.0
        profile.



Modified: trunk/mcs/class/System.Data/System.Data/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data/ChangeLog   2007-07-22 06:51:25 UTC 
(rev 82425)
+++ trunk/mcs/class/System.Data/System.Data/ChangeLog   2007-07-22 06:54:05 UTC 
(rev 82426)
@@ -1,3 +1,11 @@
+2007-07-22  Nagappan A  <[EMAIL PROTECTED]>
+
+       * DataRow.cs: Added internal set property for Table in 2.0
+       profile.
+
+       * DataColumn.cs: Added internal set property for Table in 2.0
+       profile.
+
 2007-07-01  Gert Driesen  <[EMAIL PROTECTED]>
 
        * DataRowCollection.cs: Only override Count on 2.0 profile.

Modified: trunk/mcs/class/System.Data/System.Data/DataColumn.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataColumn.cs       2007-07-22 
06:51:25 UTC (rev 82425)
+++ trunk/mcs/class/System.Data/System.Data/DataColumn.cs       2007-07-22 
06:54:05 UTC (rev 82426)
@@ -720,6 +720,11 @@
                        get {
                                return _table;
                        }
+#if NET_2_0
+                       internal set {
+                               _table = value;
+                       }
+#endif
                }
 
                [DataCategory ("Data")]
@@ -868,20 +873,20 @@
                        return ColumnName;
                }
 
-               internal void SetTable(DataTable table) {
-                       if(_table!=null) { // serves as double check while 
adding to a table
-                    throw new ArgumentException("The column already belongs to 
a different table");
-            }
-            _table = table;
-            // this will get called by DataTable
-            // and DataColumnCollection
-            if(_unique) {
-                // if the DataColumn is marked as Unique and then
-                   // added to a DataTable , then a UniqueConstraint
-                   // should be created
-                UniqueConstraint uc = new UniqueConstraint(this);
-                _table.Constraints.Add(uc);
-            }
+               internal void SetTable (DataTable table) {
+                       if(_table != null) { // serves as double check while 
adding to a table
+                               throw new ArgumentException ("The column 
already belongs to a different table");
+                       }
+                       _table = table;
+                       // this will get called by DataTable
+                       // and DataColumnCollection
+                       if(_unique) {
+                               // if the DataColumn is marked as Unique and 
then
+                               // added to a DataTable , then a 
UniqueConstraint
+                               // should be created
+                               UniqueConstraint uc = new 
UniqueConstraint(this);
+                               _table.Constraints.Add (uc);
+                       }
 
                        // allocate space in the column data container 
                        DataContainer.Capacity = 
_table.RecordCache.CurrentCapacity;

Modified: trunk/mcs/class/System.Data/System.Data/DataRow.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataRow.cs  2007-07-22 06:51:25 UTC 
(rev 82425)
+++ trunk/mcs/class/System.Data/System.Data/DataRow.cs  2007-07-22 06:54:05 UTC 
(rev 82426)
@@ -380,6 +380,11 @@
                        get { 
                                return _table; 
                        }
+#if NET_2_0
+                       internal set {
+                               _table = value;
+                       }
+#endif
                }
 
                /// <summary>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to