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

  • Home
  • SEARCH
  • 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 8123839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:17:33+00:00 2026-06-06T06:17:33+00:00

I have a confusion regarding DataContext which i would like someone to confirm or

  • 0

I have a confusion regarding DataContext which i would like someone to confirm or comment please.

In plain English, I believe a DataContext is a container which can be filled with entities upon load.

e.g. I have two entities named Customers and Orders. I now declare a new DomainContext

var ctx = new MyWebServices.MyDomainContext();

I load Customers in a DomainDataSource like this:

DomainDataSource ddsCustomer = new DomainDataSource();
ddsCustomer.context = ctx;
ddsCustomer.query = ctx.LoadCustomerQuery();
ddsCustomer.Load();

Now if I load the Orders using the same domain context

DomainDataSource ddsOrder = new DomainDataSource();
ddsCustomer.context = ctx;
ddsCustomer.query = ctx.LoadOrdersQuery();
ddsCustomer.Load();

After I submit changes ctx.SubmitChanges(), will the DomainContext go back to the server and commit all changes to server, including Customers and Orders, both? Even new records added and existing edited to these both Entities?

I am new to Silverlight and wanted a firm concept of how DataContext works, I’ve gone through the whitepapers but may be couldn’t find the answer I was looking for.

  • 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-06T06:17:35+00:00Added an answer on June 6, 2026 at 6:17 am

    Yes, myDataContext.SubmitChanges() calls the protected Ria.Entity.AcceptChanges() method on any Entity that has been loaded into the collections on the DomainContext.

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

Sidebar

Related Questions

I have little bit confusion regarding apache tomcat installation. So, I would like to
I have confusion regarding COBOL data types. Like in many interviews it is asked
Please excuse my confusion here but I have read the documentation regarding the seek()
i have few confusion regarding ORM(Object Relational Mapping) i am thinking about to use
Based on an answer from a candidate I have a confusion regarding the functioning
Hello everyone, I have some confusion regarding some Win32 API data types and macros
i have been reading this interesting article which is increasing my every growing confusion
I have a confusion, i was going through a blog and in its comment
I have some confusion regarding Events . What are the basic differences between C#
I have a confusion regarding the structure of the web.xml for the servlet mapping,

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.