in the below example, code and title are 2 string variables.
var list = from course in Entity.Courses where ((code == "" || course.courseCode.Equals(code)) && (title == "" || course.courseTitle.Equals(title)) select new Course();
But how do I go about to search by an int and a boolean?
If I use the same methods I get this error: DbComparisonExpression requires arguments with comparable types.
I tried .ToString(), .Value.ToString(), but all for nothing.

New Topic/Question
Reply




MultiQuote




|