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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:31:43+00:00 2026-05-10T13:31:43+00:00

I seem to be missing something about LINQ. To me, it looks like it’s

  • 0

I seem to be missing something about LINQ. To me, it looks like it’s taking some of the elements of SQL that I like the least and moving them into the C# language and using them for other things.

I mean, I could see the benefit of using SQL-like statements on things other than databases. But if I wanted to write SQL, well, why not just write SQL and keep it out of C#? What am I missing here?

  • 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. 2026-05-10T13:31:43+00:00Added an answer on May 10, 2026 at 1:31 pm

    LINQ is not about SQL. LINQ is about being apply functional programming paradigmns on objects.

    LINQ to SQL is an ORM built ontop of the LINQ foundation, but LINQ is much more. I don’t use LINQ to SQL, yet I use LINQ all the time.

    Take the task of finding the intersection of two lists:

    Before LINQ, this tasks requires writing a nested foreach that iterates the small list once for every item in the big list O(N*M), and takes about 10 lines of code.

    foreach (int number in list1) {     foreach (int number2 in list2)     {         if (number2 == number)         {             returnList.add(number2);         }     } } 

    Using LINQ, it does the same thing in one line of code:

    var results = list1.Intersect(list2); 

    You’ll notice that doesn’t look like LINQ, yet it is. You don’t need to use the expression syntax if you don’t want to.

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

Sidebar

Related Questions

I'm wondering if I'm missing something about Java Beans. I like my objects to
I might be missing something about the intended behavior of list extend, but why
I have a datagrid which I am using LINQ to fill, I then add
LuaSQL , which seems to be the canonical library for most SQL database systems
I really hate sometimes how IDictionary<TKey, TValue> [key] will throw an exception if the
I'm a bit confused from what I've heard Java doesn't do events. But I
I'm a bit curious as to why one would want to use hex encoding
I was going through the AWDR book on web development with ruby on rails
I have this python code for opening a .cfg file, writing to it and

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.