Ticket T312157
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

NonPersistentObjectSpace - Support showing persistent objects in non-persistent objects' Views

Accessing persistent objects inside a non-persistent class

created 9 years ago

[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?

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

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.

    Comments (2)
    MD MD
    Markus Dütting 9 years ago

      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

      Dennis Garavsky (DevExpress) 9 years ago

        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!

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.