Hi,
I'm having a hard time now trying to map a complex object into a DTO (data transfer object). I always got the following error: "Property copy failed (IsNew)"
I don't understand why its happening because it is specifically written in the "Expert VB 2005 Business Objects" that the IsNew, IsDeleted, IsDirty, etc.... are automatically filtered out in the DataMapper.Map if the object is base on BusinessBase of CSLA.
I tried to put the "suppresExceptions" parameter to True and it works but if a got other errors I will not be aware of them.
Here is my code:
'mapping the Range body
DataMapper.Map(objRange, rangeDTO, New String() {"ExtensionData", "PostalCodeInfo", "DeliveryModesList", "POCCount", "StreetRangesList", "SuiteRangesList", "LockBoxRangesList", "IsValid", "IsDirty", "IsNew"})
As you can see I need to specify each CSLA based property (IsNew, IsDirty, ....)
Has anyone already had this problem ???
Thank you !
Do not consider this thread, we implemented something new in the CSLA framework and we screwed something. Once it was fixed, everything is working fine.
Thank you
Copyright (c) Marimer LLC