Session: How to refresh entity?
To update entity with latest changes from server
Refresh method from
Advanced session operations can be used.
void Refresh<T>(T entity);
||Instance of an entity that will be refreshed
Employee employee = session.Load<Employee>("employees/1");
// LastName changed to 'Shmoe'
Refreshing transient entity (not attached) or entity that was deleted on server-side will result in