Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7922495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:58:29+00:00 2026-06-03T16:58:29+00:00

Using Silverlight 4, Oracle 11g, and Entity Framework 4. I use a DataServiceQuery to

  • 0

Using Silverlight 4, Oracle 11g, and Entity Framework 4.

I use a DataServiceQuery to fill a DataGrid. Then, some local (non-EF) code updates the DB. I would like to use the same query to refresh the DataGrid with the updated/new data. The problem is, when I do that, it returns the old, original results. I have verified that the changes have, in fact, been committed to the DB prior to this code running:

DataServiceContext<T> dsContext= new DataServiceContext<T>(uri);
dsContext.MergeOption = MergeOption.NoTracking;
dsContext.SaveChangesDefaultOptions = SaveChangesOptions.ReplaceOnUpdate;
DataServiceQuery<T> dsQuery = dsContext.CreateQuery<T>(typeof(T).Name);
// oldQuery is an IQueryable<T>
dsQuery = (DataServiceQuery<T>)oldQuery;

var dsQuery = (DataServiceQuery<T>)oldQuery;
dsQuery.BeginExecute(new AsyncCallback(c =>
   {
      IEnumerable<T> result = dsQuery.EndExecute(c);
      listSelectedRecord = new List<T>();
      listSelectedRecord = result.ToList();
   }), dsQuery);

As far as I can tell, the new dsQuery is not even being sent to the Oracle server, even though a new DataServiceContext is being created. It is apparently discovering that it has a cached copy somewhere. If I type the query into a browser, it returns the updated results.

Any suggestions on how to force the DS to reperform the query?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:58:32+00:00Added an answer on June 3, 2026 at 4:58 pm

    The astonishing answers to this question seem to be found here:

    Does Silverlight cache web service calls?

    and

    https://connect.microsoft.com/VisualStudio/feedback/details/340931/silverlight-webclient-does-not-download-updated-resources

    There seems to be be some sort of vague consensus that SLx does indeed rely on the browser cache, not that you would know that from the DataService, DataServiceContext, or DataServiceQuery docs.

    So the easiest fix for this, in IE 8 at least, is to turn off browser caching.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using silverlight mvvm light framework. when I was trying to delete entity
I'm using silverlight-enabled wcf service and entity framework for my silverlight business applicaiton. But
I am using Silverlight 5.0 and WCF 4.0 with entity framework 4.0. My design
Here's my scenario: I am using Silverlight, RIA and POCO objects (no Entity Framework;
I am using silverlight, My code is set up for a usercontrol as follows:
I'm using Silverlight and need to display some OTF fonts. Now Silverlight supports OTF
So I am using Silverlight 4.0 I have the following code but its giving
Am using silverlight 4.0 ,here am trying to export the data from datagrid to
We are using Oracle 10g database, NHibernate, WCF and Silverlight 3.0 in our project
using Silverlight I am having trouble with the following code: CultureInfo culture = new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.