Forráskód Böngészése

2004-06-24 Atsushi Enomoto <[email protected]>

	* DataTableMapping.cs : Clone() should also clone ColumnMappings.

svn path=/trunk/mcs/; revision=30316
Atsushi Eno 21 éve
szülő
commit
b4bdf95c9d

+ 4 - 0
mcs/class/System.Data/System.Data.Common/ChangeLog

@@ -1,3 +1,7 @@
+2004-06-24  Atsushi Enomoto  <[email protected]>
+
+	* DataTableMapping.cs : Clone() should also clone ColumnMappings.
+
 2004-06-18 Umadevi S <[email protected]>
 	* DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the 
 		SetItemForDataRecord method for all the classes.

+ 3 - 1
mcs/class/System.Data/System.Data.Common/DataTableMapping.cs

@@ -129,7 +129,9 @@ namespace System.Data.Common {
 
 		object ICloneable.Clone ()
 		{
-			return new DataTableMapping (SourceTable, DataSetTable);
+			DataColumnMapping [] arr = new DataColumnMapping [columnMappings.Count];
+			columnMappings.CopyTo (arr, 0);
+			return new DataTableMapping (SourceTable, DataSetTable, arr);
 		}
 
 		public override string ToString ()