Saturday, December 8, 2012

Refreshing DomainSource.DomainContext

Refreshing DomainSource.DomainContext

I am working on a silverlight application built using RIA services & Entity framewok.

On save button click after saving the data to the DB I get the attributes from Domain source and have to do some operation on them .

My code is as below

var ctx = (RadiographyContext)this.DomainSource.DomainContext;    foreach (var e in ctx.Energies)             {               // some calculations here             } 

But domain context is not having updated values . Its having the values loaded on page load . How Can I refresh the Domainsource ?

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog