WCF RIA Entity Using Load Operation; How to Get Latest Database changes
this is a follow up from the following question
WCF RIA : LoadOperation Not Refreshing DataLoadOperation<Clarifications> ClarificationsLP = context.Load(context.GetClarificationsQuery().Where(o => o.ProjectID == ((App)Application.Current).Project.ProjectID).OrderBy(o => o.RaisedOn), LoadBehavior.RefreshCurrent, false); ClarificationsLP.Completed += delegate
{};
The code abo开发者_如何学编程ve works fine, it will return me any changes that may occur in the database outside of my application. Great! However it only returns me the new changes...what if an Item was deleted? How can I deal with this? This is an issue for me.
Any help is appreciated.
Thanks
if other application is deleting registrys, and you want to refresh it, so you need to clear the cache entitys and do the load operation.
精彩评论