ADO .NET - adding a DataTable to more than one DataSet -


I want to add a DataTable to more than one dataset without calling DataTable. Copy () simply duplicates the amount of data in the DataTable copy memory and gives me a reason to manage its changes. This problem exists because I am implementing a detailed table solution where there may be more than one owner in a detailed table.

If this helps, consider this snippet and as a result, consider the naive face.

  DataTable Table1 = GateDataTable (); // 100 rows of data datatell table 2 = table 1; Dataset 1 dataset 1 = new dataset (); Dataset 2 dataset 2 = new dataset (); Dataset1.Tables.Add (table1); Dataset2.Tables.Add (table2); // fails because table 2 is already present in dataset 1 :-(  

Any suggestions are out there? Thanks!

You can not do this without duplication because the dataset is designed to be mobile, and is freely updated, as a result, In the context of data in the data, the data must be the same.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -