1
Answer

Linq to entity framework: how to get string match

Nikhil Mittal

Nikhil Mittal

10y
929
1

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)