What are the fundamental misunderstandings people have when they first start using LINQ?
For instance, do they think it is one thing when it is really something else?
And, are there some best practices to employ to avoid these mistakes?
That it should be used for everything.
Failing to understand the differences betweeen (or existence of!):
.First()
.FirstOrDefault()
.Single()
.SingleOrDefault()
Not understanding deferred execution.
That it only refers to LINQ to SQL
The biggest mistake people make when using LINQ is the same as when people try to use any sort of technology that lies on top of a technology that they don't have any good grounding in.
If you can't understand proper/efficient DB querying, you will screw up with LINQ.
If you can't understand the basic fundamentals of ADO.NET and data access, you'll probably screw up.
People think that by using LINQ it will allow them to coast by, but it won't.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With