How to perform Case-insensitive “contains” in LINQ1 min read

You will need to create a simple class that takes the personal information of the registered students.

The next step is to fill some dummy data and create a list of students that belongs to Computer Science department.

If you call Contains() method in dbcontext class, it will mapped to the LIKE ‘%hello%’ operator automatically, and can perform the search by following the two ways:

Leave a Comment