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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:15:57+00:00 2026-06-16T04:15:57+00:00

Recently i accidentally moved from a Dataset World to a Generic World. I am

  • 0

Recently i accidentally moved from a Dataset World to a Generic World. I am little confused with some of the Model.

In my Model , i had three types of Models as Product { Productid, ProductName}, ProductType {ProductTypeId, ProductTypeName} , ProductCategory {ProductCategoryId, ProductCategorName}

My Stored Procedure Returns {ProductName, ProdcutTypeName, ProductCategoryName }

Previously i used to use a Dataset :). But i am worried that how to save these combinations in a List. i cant take List or any other? Do i need to create a seperate class for this?

Could anyone suggest me that how to handle these situations?

  • 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-06-16T04:15:58+00:00Added an answer on June 16, 2026 at 4:15 am

    Yes

    You should create new models for all combinations your stored procedures return.

    If you would start from scratch with, lets say Entity Framework Code First, you would probably define a couple of models that would suite most of your needs and target your custom stored procedures (that would probably be a lot fewer) to those projections.

    But now that your are working on an existing database your world will be a bit awkward. And something that can burn you is stored procedures that if/else returns different result sets. Linq frowns on those. I learned this the hard way.

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

Sidebar

Related Questions

Recently I had cause to compare Blowfish algorithms. I was comparing outputs from DI
Hi guys : I recently (accidentally) removed all folders/files from my .vim folder in
I recently accidentally called rm -rf * on a directory an deleted some files
I recently ran into an embarrassing situation with some Flash coding where I had
Recently, I was asked to compile some of my Android projects, based on the
Recently, while working on a shared host, I accidentally changed the permissions of my
I recently accidently wrote a really ugly stored proc where I wished I had
Recently, probably by some accidental key-combination stroke during furious development, my IntelliSense window has
Recently I've studied the backpropagation network and have done some manual exercise. After that,
Recently while doing some work with C# & ActiveMQ (via the Apache.NMS libraryies) I

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.