Linq Query Null check returning bool error?

You cannot use a non-primitive type in the where clause Change it to something like where sv.Category. Name == someString.

You cannot use a non-primitive type in the where clause. Change it to something like where sv.Category. Name == someString.

Thank you! I went with: var qry = from sv in Context. DocStore_SearchValues where sv.Category.Name == category.

Name select sv; – ErocM Nov 5 '10 at 18:42.

So it looks something like this: var qry = from sv in Context. DocStore_SearchValues where sv.Category. Equals(yourCategory) == true select sv; return qry.Any(); Then you would use a partial file class to extend the Category class to implement the comparison logic.

You'd generally want to do something like where category. Id == id instead of comparing strings, imo.

Var qry = from sv in Context. Then you would use a partial file class to extend the Category class to implement the comparison logic.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions