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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:09:08+00:00 2026-05-27T09:09:08+00:00

I have a Custom POCO (Already existing und used in my project). public class

  • 0

I have a Custom POCO (Already existing und used in my project).

public class MyPoco()
{
     public string MyPocoName {get; set;}
     public string MyPocoParentName {get; set;}
}

I have also a stored procedures that returns a list of (MyPocoName,MyPocoParentName) values.

I couldn’t set MyPoco as the return type of this procedure in the Function import wizard.

I don’t want to create a new custom type that have the same proporties as MyPoco.

Is there any way that could specify the return type of the stored procedure to be MyPoco.

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-27T09:09:08+00:00Added an answer on May 27, 2026 at 9:09 am

    Yes there is a way but you must not use function import (adding stored procedures to your model doesn’t make sense in this case). Use:

    var data = objectContext.ExecuteStoreQuery<MyPoco>("spName", SqlParams);
    

    to call you stored procedure.

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

Sidebar

Related Questions

I have custom ContentControl called TabItem public class TabItem : ContentControl I have set
I have a custom DbContext class. I have existing tables in the system. I
I have custom ImageView: public class ShadowedImageView extends ImageView { private Paint mPaint; public
I have custom Application class in my Android project that is properly described in
I have custom app class public class MyApp extends Application { public static Context
I have custom validation rule: public function customRule($check) { } Inside this rule I
I have a class that has a create method, passing into it a POCO
I have custom content type, which has target association. I want to set up
I have custom type name Netsgroup which is a collection of Net class. Net
I have custom JButton class with gradient background and rounded corners. Should I override

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.