This is a migrated thread and some comments may be shown as answers.

Enforce PostLoad Execution

1 Answer 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christina Faur
Top achievements
Rank 1
Christina Faur asked on 31 Aug 2012, 08:01 AM
Hi,

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

btw:
used Version 2011.2.713.3 (classic api)

1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 04 Sep 2012, 04:35 PM
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,
Ady
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!
Tags
General Discussions
Asked by
Christina Faur
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or