learn LINQ in 5 minutes

Translating SQL to LINQ can prove difficult for new and experienced C# developers. This post contains common SQL queries written in LINQ. I hope it’ll serve as a reference when writing LINQ queries. I’ll use a MS SQL database and Entity Framework for my examples. However, these examples can be extracted to other ORMs and… Continue reading learn LINQ in 5 minutes

LINQ vs Lambda vs loop – A performance test

I was wondering about the benefits of using Linq over Lambda or vice versa for data filtering. I knew that the for loop was the fastest. But I was really interested to know whether lambda expression had any advantage over traditional LINQ syntax. For my understanding, both LINQ and lambda were same. Lambdas are the… Continue reading LINQ vs Lambda vs loop – A performance test