Is it advisable to use Linq when querying from the database or List items? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Is it advisable to use Linq when querying from the database or List items?

Linq

7th May 2019, 8:21 PM
Setshabelo
Setshabelo - avatar
1 Answer
+ 1
No. I think it is personal preference, just another way to do it. Also it is not bad practice to use linq, so yes if you want to you can. I have heard that linq is slow, on the other hand you can do pretty complex things in a really short code that is still understandable.
8th May 2019, 6:54 AM
sneeze
sneeze - avatar