Can you post some code samples?

I use entity.Refresh myself with the session-per-winform pattern and it
works fine.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Alessandro C.
Sent: 14 January 2011 12:40 AM
To: Castle Project Users
Subject: AR Force reload an entity

I need to refresh an entity (and all its children) from the database.
I tried ActiveRecordMediator.Refresh(entityname) but nothing happens on the
database and the entity is the same as before.

I tried ActiveRecordMediator.Evict(entityname) before Refresh but nothing.

How can I force the entity reload?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to