Author: kostat
Date: 2005-04-27 11:56:19 -0400 (Wed, 27 Apr 2005)
New Revision: 43665

Modified:
   branches/Mainsoft.System.Data/mcs/class/System.Data/ChangeLog
   branches/Mainsoft.System.Data/mcs/class/System.Data/System.Data/DataRow.cs
Log:
DataRow.cs: Removed unneeded check of RowState

Modified: branches/Mainsoft.System.Data/mcs/class/System.Data/ChangeLog
===================================================================
--- branches/Mainsoft.System.Data/mcs/class/System.Data/ChangeLog       
2005-04-27 15:39:51 UTC (rev 43664)
+++ branches/Mainsoft.System.Data/mcs/class/System.Data/ChangeLog       
2005-04-27 15:56:19 UTC (rev 43665)
@@ -1,5 +1,9 @@
-2005-04-08  Konstantin Triger <[EMAIL PROTECTED]>
+2005-04-27  Konstantin Triger <[EMAIL PROTECTED]>
 
+       * DataRow.cs: Removed unneeded check of RowState
+
+2005-04-27  Konstantin Triger <[EMAIL PROTECTED]>
+
        * ConstraintCollection: throw DuplicateException only if names match 
exactly with Table's locale
 
 2005-04-08  Raja R Harinath  <[EMAIL PROTECTED]>

Modified: 
branches/Mainsoft.System.Data/mcs/class/System.Data/System.Data/DataRow.cs
===================================================================
--- branches/Mainsoft.System.Data/mcs/class/System.Data/System.Data/DataRow.cs  
2005-04-27 15:39:51 UTC (rev 43664)
+++ branches/Mainsoft.System.Data/mcs/class/System.Data/System.Data/DataRow.cs  
2005-04-27 15:56:19 UTC (rev 43665)
@@ -1362,7 +1362,7 @@
                /// </summary>
                public void SetParentRow (DataRow parentRow, DataRelation 
relation) 
                {
-                       if (_table == null || parentRow.Table == null || 
RowState == DataRowState.Detached)
+                       if (_table == null || parentRow.Table == null)
                                throw new RowNotInTableException("This row has 
been removed from a table and does not have any data.  BeginEdit() will allow 
creation of new data in this row.");
 
                        if (parentRow != null && _table.DataSet != 
parentRow.Table.DataSet)

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

Reply via email to