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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:23:45+00:00 2026-05-14T07:23:45+00:00

As EF 4.0 released, more support to SQL server Stored procedure. Complex Type can

  • 0

As EF 4.0 released, more support to SQL server Stored procedure.
Complex Type can be generated automatically for result dataset of SP.
But complex type not support by Ria Service.

When I try to use ria service combined with EF 4.0, I want to get dataset by SP. This result is not mapped to any entity/table.

Some sulutions suggested by community are:
1. Create view to map sp result. (but for EF, if there is no ID or primary, can’t be map to any entity)
2. Create Entity to map sp result.(for this, you even need to map SP for CRUD even though I don’t need CUD on this sp result)

Also above solution can’t be automated. As Database objects maybe changed with the time, auto update edm will lost above solution.

So what’s the solution? I want to put data operation back to DB as possible, so that many changes can be done in DB and no need to rebuild .net assemblies(this cause redeploy).

  • 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-14T07:23:46+00:00Added an answer on May 14, 2026 at 7:23 am

    We have the same problem come up many times in our development. The work around we chose to implement is WCF RIA Services with POCO (Plain Old CLR Object).

    Using POCO’s we can implement a domain service that communicates to the client by an object we create by hand. This gives us access to the database through any technology (EF, or anything really) on the server, allowing us to use the Stored Procedure and use of RIA on the client.

    Of course, this process adds a funky step to the system. You’ll have to maintain your POCO to your DB’s Stored Procedure.

    Simple Example:

    [EnableClientAccess()]
    public class FooBarService : LinqToEntitiesDomainService<MyDBEntities>
    {
        public IQueryable<FooBar> GetFooBar()
        {
            var qry =   from FooBarSPs in this.ObjectContext.FooBarSPs
                    orderby FooBarSPs.Name
                    select new FooBar
                    {
                        ID = FooBarSPs.ID,
                        Name = FooBarSPs.Name
                    };
            return qry;
        }
    }
    

    If you must use WCF RIA Services and you want to talk to a stored procedure, using POCO objects as the messengers are the easiest way I’ve seen, to do it.

    I recommend watching Brad Abram’s talk at Mix 09 last year:
    http://videos.visitmix.com/MIX09/T40F

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

Sidebar

Related Questions

I heard on the grapevine that Microsoft will be releasing SQL Server 2008 R2
I'm running Sql Server Management Studio 2008 on a decent machine. Even if it
At work we recently upgraded from Microsoft SQL Server 7 to SQL 2005. The
Oracle SQL can do hierarchical queries since v2, using their proprietary CONNECT BY syntax.
Microsoft released the source for Oxite , their blogging engine that's intended to help
I released an app and I've implemented a user-requested feature and would like to
Last week we released Omniture's analytics code onto a large volume of web sites
When IE8 is released, will the following code work to add a conditional stylesheet?
The ASP.NET team released the script combining feature in 3.5 SP1 as detailed here
RIM has released a new Blackberry JDE4.7 after releasing the Blackberry Storm. Does 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.