Nikhil Mittal

Nikhil Mittal

  • NA
  • 4
  • 4.7k

Linq to entity framework: how to get string match

Nov 22 2014 12:47 PM

I have a list of string:

List<string> lst = selectedGridRows.Split(',').ToList();

I have a Entity:

Entities context = new Entities();

with table EmployeeMaster and column EmployeeName

I want to write 2 linq queries

1. for matching exact match on employeeName as per list items

2. for matching substringmatch on employeename as per list items

Please let me know both queries.

Thanks in advance


Answers (1)