MTrinder,
Thanks for the example. I understand how this would work now.
However, usefull as this way of working may be in some cases, it has two drawbacks.
- The property would be writable.
- The entity can't easily be handled by a LLBLGenProDataSource2 (as far as I know).
It might be insightfull to explain what we are trying to achieve (why we need the DataAccessAdapter in the DatabaseGeneric project in the first place).
We are writing an application that uses organizations and suborganizations (departments) in a hirachical tree. At several places in the application we need to show a path that consists of the name of a selected organization and all its parent organizations. We would like to extend the organization entity with a property that builds this path on demand. To implement this we need the DataAccessAdapter.
The reason we would like to have this information available as a property is that it would be possible to bind to it.
Maybe we just have to live with the smell
.
Regards,
Gerben ten Wolde