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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:44:30+00:00 2026-05-27T04:44:30+00:00

Okay, so I have this Silverlight client program. I’m not allowed to use the

  • 0

Okay, so I have this Silverlight client program. I’m not allowed to use the web project, but I do need to be able to read from an SQL database for my data.

Some internet searching brought me to LINQ to SQL and the System.Data.Linq.DataContext object, as well as SQLMetal.exe. I have created my data context object from the meta data in a remote SQL database and the code looks okay (from what I can tell – all the right names and types seem to be there).

What I wanted to do was add this into Silverlight, but I realised, on importing the code, that you can’t use System.Data in a Silverlight application, which sort of rules out having this code in the Silverlight client itself. Now this is annoying because a DataContext quite conveniently comes with properties which are tables and such like (I find those really convenient in Silverlight).

So I can’t do it the ‘normal way’. I can do it with a WCF service, but… well, here’s where I could use some advice. I can create a WCF service with asynch calls, but I’m not really sure in what way to wire up the DataContext object. I mean… I need access to the classes in there within my Silverlight application (for my entities in the database) (and I’m not quite sure how to do that – help there would be appreciated). Then to synchronise it all up? Well, I could use some suggestions. For example, before, I have an exposed ObservableCollection. In its getter, it repopulated itself with the contents of, for example, Context.Customers. This made things nice and easy, but I can’t see a way of doing something like that now. If I made a call to an asynch service for every ‘get’, surely this would be unacceptably slow.

If you could help me pick my way through this, I would be grateful. Thanks.

  • 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-27T04:44:31+00:00Added an answer on May 27, 2026 at 4:44 am

    You definitely need to read about Entity Framewrok and couple articles about using WCF RIA + EF in Silverlight applications.

    Hope, that will help you.

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

Sidebar

Related Questions

Okay, I have this program and I don't want more than one instance of
Okay so, I have this project structure: package A.B class SuperClass (this class is
Okay so I have this web site search script and I'm trying to count
Okay, so I've read some other people have had this problem, but they either
Okay, so I have this string, it's x/y. How can I use the split
Okay i have this problem with every page i make. im not sure what
Okay, so I have this script which works fine with IE but won't work
Okay, so first, I have searched for this everywhere but it seems like every
Okay, I have this textfield form that contains some text. What I need to
Okay I have this RewriteRule which is supposed to redirect any request for the

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.