my database field int_ParentId consist of a Null value . how would i check it for a null in this linq query . it is not working
return _db.Categories.Where(m => m.int_ParentId==null);
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.
Have you mapped you
int_ParentIddatabase field toint?type (e.g.<Column Name="int_ParentId" Type="System.Int32" DbType="Int" CanBeNull="true" />)? If yes, both:and
should work.