In my project I'm using repository pattern for business-layer. Reading alot about repository pattern I haven't found any information on how to keep business objects synchronized with data.
Lets say I've loaded some data, through mapping created my business objects and saved them to repository. My repository implementation maintains change tracking so I can easily update underlying data layer.
The application is n-tier application with multiple clients, and (possibly) multiple business layer instances on different independent servers.
The problem:
How to maintain data consistency between business objects in repository and respective data in database?
Is there any patterns or best practices on when and how to update business objects who's data was changed in database while they are cached in repository?