Enforce PostLoad Execution

2 posts, 0 answers
  1. Christina Faur
    Christina Faur avatar
    1 posts
    Member since:
    Aug 2009

    Posted 31 Aug 2012 Link to this post


    after committing changes to databse, I have to reinitialize (i use PostLoad for initialization some transient fields) records in other scopes.
    I use a global event to recognize changes in another scope, but I can't find a solution to refresh my records - especially to refresh references and collections - for already loaded records.

    Thanks in advance

    used Version 2011.2.713.3 (classic api)
  2. Ady
    Ady avatar
    588 posts

    Posted 04 Sep 2012 Link to this post

    Hello Christina,

     In case you need to refresh all objects in the other scope it makes sense to rollback the transaction on the other scope or just use a new scope instance. In case you want to refresh individual objects you can call scope.Refresh.

    Do get back in case you need further assistance.

    All the best,
    the Telerik team
    Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
  3. DevCraft banner
Back to Top