Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Using .contains LINQ method doesn't work properly.
Fares Ayyad
7 years ago
314
Reply
Hello
I'm trying to convert SQL like command to LINQ
select
EmployeeID,EnName
from
EmployeeMaintenance
where
EmployeeID
like
'1'
in c# code i replace the 1 with variable, that will be any value, but in debug i provide the same value which is 1:
var test= _context.EmployeeMaintenances
.
Where
(c => c.EmployeeID.
Contains
(param.sSearch));
But the result is the wohle list in the table
EmployeeMaintenances !!?
can any one figure the problem?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
display image in crystal report from folder
mysql 5.6 Workbench problen