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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:38:54+00:00 2026-05-31T16:38:54+00:00

I have an MVC3 program in which I want to query a database and

  • 0

I have an MVC3 program in which I want to query a database and then based on IQueryable returned but the query build a new IQueryable object that will contain item from the original IQueryable but slightly post-processed.

I could of course build a better query in the first place but the problem is the post-processing I need isn’t that easy to do in SQL, but I would do it in C# trivially.

So in effect I need a container-like class that implements IQueryable and I’m not fond of idea of implementing it myself.

Is there a ready class that implements IQueryable?

  • 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-31T16:38:55+00:00Added an answer on May 31, 2026 at 4:38 pm

    Your question is strange.
    If you want to preprocess all results, then you either have to load them all first and preprocess. Then, they will be stored in IEnumerable. Which seems like a good idea, if there are reasonable amount of results, and you don’t need server sorting, etc.

    The other way, is to append Select to your IQueryable and do some processing in it without loading actual data (processing will take place on the server side). But in this case you are very limited by the ORM implementation that you use.

    The next other way, I would do some extended processing logic and still getting result via IQueryable is by putting all processing logic into Table-valued function (or view) in SQL server, and then mapping it to your ORM, and querying it.

    The whole idea of IQueryable is that it does not have the data, it is only a defintion of DB query that will be performed upon enumeration.

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

Sidebar

Related Questions

Possible Duplicate: Schedule Controls for ASP.Net MVC I have MVC3 in which I want
I have a MVC3 site which needs users to be able to login in
I have the version of NuGet that comes with MVC3 (1.0), but when I
As my question say I want to create a new project based in a
I have an MVC3 web app which is effectively 'bolted on' to a classic
I have an MVC3 application which has a reference to DLL. This DLL is
I have MVC3 application with SSL. I want particular page URL should always add
I have an MVC3 and EF 4 Code First application, which is configured to
I have an MVC3 app which was using EF CTP5. After upgrading to EF
I have a mvc3 web application which uses jqgrid extensively. I just came 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.