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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:15:10+00:00 2026-05-26T05:15:10+00:00

I usually prefer the extension methods, because they i find them easier to read,

  • 0

I usually prefer the extension methods, because they i find them easier to read, but after seeing the answer by Erno to this question I was wondering how the minimum query would look with only extension methods used?

And more generally, are there queries that you can create in one form but not the other, or are both approaches equivalent?

  • 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-26T05:15:10+00:00Added an answer on May 26, 2026 at 5:15 am

    There’s nothing you can do in query expressions which can’t be done without query expressions – query expressions are just translated into non-query-expression code anyway. There are plenty of queries that can’t be written in query expressions though… for example, anything using the Select overload which provides the index as well:

    var foo = bar.Select((value, index) => new { value, index });
    

    … and of course, all the many operators which aren’t supported by query expressions at all (First etc).

    The “minimum” query would use SelectMany for the second from clause, Select for the let clause (introducing a new transparent identifier), Where for the where clause, and Select for the select clause.

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

Sidebar

Related Questions

I usually prefer to code with a black background and white/coloured text but I
I usually prefer linux for programming( i program in django on Ubuntu). But often
I've been doing a lot of calculating stuff nowadays. Usually I prefer to do
I'd usually prefer to create virtualenvs with --no-site-packages option for more isolation, and also
I have read some comments in some forums saying that Linux programmers usually do
I usually use MySQL Query Browser for my queries, but I always run into
After doing a simple merge (one without conflicts), git show usually only shows something
This is not terribly important, but I want to find out if you can
I really dont like writing something like $('body').append('<div class=foo>foo</div>'); Because i usually end up
Usually when I'm creating indexes on tables, I generally guess what the Fill Factor

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.