This project has moved and is read-only. For the latest updates, please go here.

How to refresh queries

Feb 15, 2011 at 11:08 PM

I've noticed, that my OOB app, after query object aquired, does not see any changes, made by another instance of the same OOB application.

Is there any official way to reload/refresh/update queries?

Feb 16, 2011 at 12:07 AM

No, I'll add that as a feature request but currently Sterling assumes one version of the application is running.

I highly suspect this will be very feasible to implement using pub/sub and local messenger, so it is likely to end up in vNext. Thanks for bringing it up, I'll enter the feature request so you can go vote on it!


Feb 16, 2011 at 12:30 AM

I have found, that ITableDefinition has Refresh method, that works exactly as I expected.

So I just stored the list, returned by _RegisterTables method and added a simple Refresh(Type) method, that call ITableDefinition.Refresh().

Also I customized Flush method on database instance to accept optional type parameter (to flush certain table only).