Does Microsoft Net Core 3 recommend method syntax or query syntax for Linq Entity Framework queries? This is a debate in our workplace, we are curious.
This is not Opinion based question, but fact, since I am looking for Microsoft recommendation, not people opinion . Thanks
There's no need to recommend either. They're equivalent, in that query expressions are effectively "preprocessed" to method syntax.
I view it as very worthwhile to know both:
Learn both thoroughly, and use whichever is most appropriate for any given scenario.
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