Pros and Cons of LINQ (Language-Integrated Query)

前端 未结 5 1843
谎友^
谎友^ 2020-12-04 15:00
  • What are the pros and cons of LINQ (Language-Integrated Query)?
  • What are the best and worst cases in which to use LINQ?
  • How have you benefitted or no
5条回答
  •  被撕碎了的回忆
    2020-12-04 15:33

    I've used LINQ mainly to work on collection of objects. LINQ works wonderfully with object collections, removing the need of predicate functions in most cases.

    I tried using LINQ to SQL a little while ago, but found it underpowered and clumsy. In particular I couldn't bring myself to use the SQL Database class designer. Maybe it does give intellisense on the database, but who needs it when you've got SQL?

    Let me tell you though, it's certainly a good idea to learn more about LINQ, as the applications in the future should only increase.

提交回复
热议问题