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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:32:35+00:00 2026-05-26T03:32:35+00:00

On my MVVM Silverlight application I need to call Domain service function to get

  • 0

On my MVVM Silverlight application I need to call Domain service function to get both sql query result and some ‘OUTPUT’ data from stored procedure. I figure out how to get the data on Domain Service side but on client I don’t know how to get the ‘OUTPUT’ parameters from the function since Silverlight is async call. The following is my function on Domain Service and I need get the two returned OUTPUT parameters from the async call.

Thanks for any help.

CK

  [Invoke]
    public IEnumerable<sp_Inquiry_Result> GetResultAsync( string ID, 
                                                          out string sDescription, 
                                                          out float fvariance)
    {

        // Declare ObjectParameter object to store output param
        ObjectParameter WorkcenterDescription = new ObjectParameter("@Description", typeof(string));         
        ObjectParameter Variance = new ObjectParameter("@Variance", typeof(float));

        // Call stored procedure, passing in Object Parameter
        ObjectResult < sp_WorkcenterCostInquiry_Result > o = this.ObjectContext.sp_Inquiry(
            workcenterID, 
            Variance);

        // ObjectParameter will have output param value from stored proc
        sDescription = Convert.ToString(Description.Value);
        fvariance = (float)Convert.ToDouble(Variance.Value);

        return o.ToList().AsEnumerable();

    }
  • 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-26T03:32:36+00:00Added an answer on May 26, 2026 at 3:32 am

    RIA Services dos not support out parameters. They would not make any sense to an asynchronous call (any out results are being ignored behind the scenes of the service call).

    The standard approach is create a result object containing multiple properties and return that instead.

    In your specific example that would been a new return type that includes these properties:

    • sp_Inquiry_Result
    • sDescription
    • fvariance
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have application have been written in Silverlight using MVVM pattern. We need to
I have a mvvm(model view viewmodel) silverlight application that has several views that need
I am trying to put all the pieces together for my MVVM Silverlight application
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't
I have an MVVM Silverlight 4 application that holds a list of modules (a
I'm using mvvm light to build a Silverlight application. Is there a code snippet
I am creating a Silverlight 4 application with Entity Framework, RIA Services and MVVM-Light
I am studying to use MVVM pattern for my Silverlight application. Following code is
I'm creating a Silverlight 3.0 MVVM application using Silverlight.FX but my View is actually
I've got this Silverlight Prism application that is using MVVM. The model calls 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.