[DevExpress Support Team: CLONED FROM S30563: Core - Improve usability and support more scenarios of working with non-persistent objects]
I didn't test the feature up to now, but thinking over using it. The question i have is what about references to persistent objects (properties with a persistent type)? Are these possible?
We use NonPersistent Classes quite often for querying parameters to handle the creation of complex objects or actions (even with a detail list views through using a BindingList). Afaik a view can only have one ObjectSpace and if that is a NonPersistentObjectSpace, all instances "inside" and all references have to be non persistent? That would be a severe limitiation or is there something i don't get? E. g. a XPObjectSpace member in the NonPersistentObjectSpace to handle the persistent instances?
We have closed this ticket because another page addresses its subject:
NonPersistentObjectSpace - Support showing persistent objects in non-persistent objects' ViewsAccessing persistent objects inside a non-persistent class
Answers approved by DevExpress Support
Hello Markus,
Please check out the current solution in the NonPersistentObjectSpace - Showing persistent objects in non-persistent objects' views thread. Let me know how this works for you.
Sorry for the noise, i didn't search before posting my question.
But at least reassuring for me that my mental concept of ObjectSpaces in XAF isn't completely wrong, as the linked solution follows my crudely worded idea.
Thanks
No worries, you are welcome, Markus! I've just talked with the lead Core sub-team developer, Aleks M, and this scenario already on our radar, so its usability can be improved in the future if we have demand for it. So, if you find anything not very usable, please let me know (not only on this feature, but on any XAF aspect). Thanks!