Can someone convert the following simple SQL statement into LINQ? The StudentID is of type int.
select * from Student where studentId like ‘%1001%’;
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s strange that you have an ID of string type.
Use int instead.
O, sorry, I see now, you wrote that ids are ints. In that case you cannot use like in SQL.
It doesnt make sense. You must convert int to string first.