This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
The documentation mentions this: The default mapping approach provided with IUnitOfWork.Import will work well for one to one style mapping and constrains you to the use of a key property to ensure you get conditional insert/update behaviour. Lastly associations are also not currently traversed as part of the mapping so in the earlier example if an ApplicationMember held Contribution and Comments collections then these would not be imported back into the UnitOfWork. Is support for this planned? In the end i would love it if this was supported. I would like my domain layer to expose ICompany's that hold IPerson's so that i dont have to expose mindscape to whoever is using my DAL. For this to work i still miss: 1. Automatic DTO Interface generation based on DataMember attributes, so also generating collections on the interface which the LS3_DTOS also didnt do. 2. Automatic DTO implementation generation based on DataMember attributes. 3. AsDTO extension methods that traverse marked collection DataMembers 4. Importing DTO's with associations back into the unitofwork. I imaging importing DTO's with association is a synchronization nightmare (many many lookups to get the dirty state) an option to generate DTO's with an internal dirty state checker could work here but only if you are not serializing over the wire. The goal would be not having to Expose Entities directly and therefor not having to include the mindscape references in the website, application directly.
|
|
|
Yes, support for traversal of associations is something we intent to add in but it didnt make it for 4.0. Its on our backlog for upcoming work but I cant promise anything just yet! We can also have a look at the idea around the AsDTO extensions. The Automatic DTO generation you mentioned should be able to be achieved if you customize the templates but let us know if you are having issues with this. Again if we need to add in some extra smarts to cater for this we will probably look at doing this at the same time as we add in the traversal functionality.
Thanks for the feedback! Jeremy |
|