What is the key difference between LINQ to Objects and LINQ to SQL in terms of data source?

  • LINQ to Objects is more suitable for querying relational databases
  • LINQ to Objects queries in-memory .NET collections
  • LINQ to SQL operates on in-memory data structures
  • LINQ to SQL queries databases using SQL
The key distinction lies in their data sources: LINQ to Objects operates on in-memory .NET collections like lists and arrays, while LINQ to SQL interacts with relational databases by generating and executing SQL queries.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *