Add a clear cache capability to the unit of work.


I have many forms that incorporate grids like Infragistics WinGrid. To work well with these I need to keep a uow open all the time the form is open, otherwise we run into problems with deletes, and other issues.

However, sometimes we update some data in a seperate form or computer, and we need to reload the grid, unfortunately because of the caching we end up retrieving the same data. I know we can use the reset option on the SaveChanges method, but often the saves are made elsewhere, and not with this uow.

So I think it would be useful to have a simple method ClearCache(), which does as is says, clears all caches, and allows us to get the latest data directly from the database.

Status: New