StrataFrame Forum
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
Copy data with field list
http://forum.strataframe.net/Topic8114.aspx
By Chan
-
4/13/2007
Hi,
Anyway to copy data from BO to another BO for certain fields only?
Thnak you
By StrataFrame Team
-
4/16/2007
If you are copying data into a business object, only the columns within the destination BO will be used. Any columns that exist on the source BO but not the destination BO will be dropped. However, if you want to copy only a subset of the columns, you will need to create an interim DataTable with the columns that you want, copy the data into that table by cycling through the desired records, and then call the CopyDataFrom method and pass the temporary DataTable.