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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:18:20+00:00 2026-05-30T00:18:20+00:00

I am trying to build an silverlight application which takes user first name, last

  • 0

I am trying to build an silverlight application which takes user first name, last name, pass, email address in text boxes and then add these to the database.

For this i am using WCF Ria Services.

Steps i have followed are :

Added ADO.NET Entity Data Model and then Domain Service class in my project (in web part).

Now i have got some predefined methods in my DomainService Class like Insert, Update methods. I know how to show data in DataGrid but its not what i want.

What i want is to customize all this for :

When user clicks the submit button then there should be method inside this like AddInfo(all parameters) which can add all the data to my sql server database {at present LocalHost}.

In simple words accessing your database through custom methods to add data in sql server using WCF Ria Services

I know it was very simple while working in .net forms and all. But how about Silverlight & WCF ria ?

Please Suggest.

  • 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-30T00:18:23+00:00Added an answer on May 30, 2026 at 12:18 am

    In simple words accessing your database through custom methods to add
    data in sql server using WCF Ria Services

    What you should do is write a custom method in server-side.

    On server-side, you have a DomainService class that should inherit from LinqToEntitiesDomainService<TContext>.

    Simply add a method in this class with the Invoke attribute, for example:

    [Invoke]
    public void AddNewUser(string name, string firstName, int age)
    {
        // Put logic here to add the user to the DB
    }
    

    The logic to add a user to the database is really simple, just create a new Entity, add it to the context and call context.SubmitChanges();

    When you compile the client RIA Services project, the auto-generated proxy class that correspond to your DomainService will contain your new method, and you’ll be able to call it using:

    yourDomainContext ctx = new yourDomainContext();
    ctx.AddNewUser("dsd", "ds", 42).Completed += (sender, e) =>
    {
         // Called asynchronously when the job is done
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are trying to build a silverlight application that allows a user to stream
I'm trying to build a Silverlight application where I use 5 XAMLS. The first
I'm trying to build a simple proof-of-concept business application in Silverlight and I keep
Following a couple different tutorials, I've been trying to build a Silverlight Business Application
I'm trying to build a line of business application using Silverlight. I felt like
I am learning Silverlight. In the process, I'm trying to build a custom user
I have four Silverlight 4 apps, for which I'm trying to build a shell
We are trying to build an application which has a UI like OUTLOOK? Something
I am trying to build a small silverlight application to support some midi files
I'm trying build a method which returns the shortest path from one node to

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.