in
Forums
Blogs
Files
Devexpress.Com
ClientCenter
Support Center
DevExpress Channel

How to use a custom ObjectSpaceProvider in XAF

Last post 8/21/2008 1:05 PM by Jascha. 4 replies.
Page 1 of 1 (5 items)
Sort Posts:
Previous Next
  • 8/20/2008 5:59 PM

    How to use a custom ObjectSpaceProvider in XAF

    Hi Guys,

    Here's one more Code Central example:
    ID E411 (How to use a custom ObjectSpaceProvider in XAF).

    Thanks,
    Dennis

    Developer Express Support
  • 8/21/2008 10:55 AM In reply to

    • drew..
    • Top 25 Contributor
    • Joined on 5/7/2007
    • Victoria, BC
    • Posts 834

    Re: How to use a custom ObjectSpaceProvider in XAF

    Hey Dennis, a suggestion: At this level in the forum, (and pasted into the example), it would be helpful to explain why one would want to use a custom ObjectSpaceProvider. It is not common knowledge and a clear example that outlines the need to review the example would be very very beneficial.  thank you. drew..

  • 8/21/2008 12:24 PM In reply to

    Re: How to use a custom ObjectSpaceProvider in XAF

    Hi Drew,

    Thank you for the feedback.
    Usually a regular XAF developer has no need to know about low-level details of how his XAF application works. It works and that is good for him. He only needs to type the required connection string via designer, config or in the code, or can drop a Connection component from the Toolbox and then configure it as required via the UI provided by the IDE. Everything else is handled by XAF.

    But we live in the real world and some non-trivial scenarios may take place. For instance, you may need to change the connection settings to natively configure it in the way you did before XAF. XAF doesn't prevent you from doing this as well. So, my sample illustrates how to do this...

    I suggest you check the
    Q97709 issue for an example of such a real scenario. Please download the latest sample project from this issue, which I recently modified due to changes in verson 8.2 of the suite.


    P.S.

    I will keep in mind your suggestion and will provide more comments on my stuff. Thank you for your patience again.

    Thanks,
    Dennis

    Developer Express Support
  • 8/21/2008 12:28 PM In reply to

    Re: How to use a custom ObjectSpaceProvider in XAF

  • 8/21/2008 1:05 PM In reply to

    Re: How to use a custom ObjectSpaceProvider in XAF

    Hi Drew,
     
    I have used it to alter when XAF applies validation to be after XPO has fired its Saving events so that any changes that Saving events make to the data are subject to validation. Admittedly an edge case and only useful if you alter data in (On)Saving and want to ensure it still passes validation but it did require a custom provider so that I could use a sub-classed object space. FWIW I think that XAF should apply validation at this point anyway so, from my perspective, this is "fixing" a "By Design". However, at least it could be "fixed".
     
    Cheers,
     
    Jascha
    "drew.." wrote in message news:231931@community.devexpress.com...

    Hey Dennis, a suggestion: At this level in the forum, (and pasted into the example), it would be helpful to explain why one would want to use a custom ObjectSpaceProvider. It is not common knowledge and a clear example that outlines the need to review the example would be very very beneficial.  thank you. drew..



    http://community.devexpress.com//forums/p/68155/231931.aspx#231931

Page 1 of 1 (5 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED