Tag: c#

SingleOrDefault vs. FirstOrDefault in LINQ

The LINQ (Language Integrated Query) has the extension methods SingleOrDefault and FirstOrDefault . What is the difference between SingleOrDefault and FirstOrDefault in LINQ. In one of my previous blog post , I wrote about .First() …

Using the operator AND in LINQ

Recently , I had received an query from one of my blog readers asking the question related to SQL and LINQ . “In SQL , we can use AND operator when checking for multiple conditions …

LIKE operator in LINQ

Does the LINQ(Language Integrated Query) have the LIKE operator like the one we have in the SQL Server or any other databases ? I have been searching for similar function in LINQ and below are …