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 3698838
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:01:49+00:00 2026-05-19T05:01:49+00:00

I have created a class that inherits for DomainService and have a Silverlight app

  • 0

I have created a class that inherits for DomainService and have a Silverlight app that uses System.ServiceModel.DomainServices.Client to get a DomainContext. I have also created POCO DataContracts that are used in the DomainServices’s Query, Update, Insert, and Delete methods. I also have a ViewModel that executes all the LoadOperations. And now I’m at the part of my app where I want to add new Entities to the generated EntitySets but am unsure about what’s going to happen when one user creates new and sets the Key value; all while another user creates a similar entity with the same Key value.

I have seen in the documentation that an ObjectContext is used, but in my situation I was not able to use the EntityFramework model generator. So I had to create my datacontracts by hand.

So I guess my question is, is there any way I can force other silverlight apps to update on database change?

  • 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-05-19T05:01:50+00:00Added an answer on May 19, 2026 at 5:01 am

    When you make a Save operation to your DomainContext, depending on the load behavior, it will automatically refresh.

    TicketContext.Load(TicketContext.GetTicketByIdQuery(ticketId),
                                          LoadBehavior.RefreshCurrent,
                                          x =>
                                            {
                                              Ticket = x.Entities.First();
                                              Ticket.Load();
                                              ((IChangeTracking) TicketContext.EntityContainer).AcceptChanges();
                                            }, null);
    

    Here I’ve set the LoadBehavior to RefreshCurrent. When you make a save, RIA will send the entity back across the wire to the client and merge the changes with the entity already cached on your client side context. I don’t know if that quite answers your question or not however.

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

Sidebar

Related Questions

I have created a BasePage class that inherits from System.Web.Ui.Page. In that base class
I have created a button CSS class that uses background images with different positions
I have created a service class for my network connection so that my app
I have created a class that is simply THIS Class UserControlBase Inherits UserControl End
I have created a class that inherits the QListWidget and is meant to be
I have created a class that inherits from Steema.TeeChart.TChart I am trying to disable
I have A WCF service that has a class that inherits System.Web.Security.RoleProvider. In this
Another .net newbie question I created a class that inherits System.Web.UI.Page with the intention
I have created a custom control that inherits System.Windows.Forms.Panel, and adds a few extra
I have created a class that inherits from RadioButtonList in order to add a

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.