Using a var based on an enum in a Where clause in Entity Framework throws an exception?

The problem is that the entity framework doesn't know how to eveluate your enum when it is building the T-SQL to get the int behind it. The short answer is that you have to store it in a temp variable and use that Some more information can be found at: gmontrone.com/post/problem-with-casting-... and matthidinger.com/archive/2008/02/26/enti....

The problem is that the entity framework doesn't know how to eveluate your enum when it is building the T-SQL to get the int behind it. The short answer is that you have to store it in a temp variable and use that. Some more information can be found at: gmontrone.com/post/problem-with-casting-... and matthidinger.com/archive/2008/02/26/enti....

Bit of a naff bug that. Thanks. – Ryan O'Neill Aug 25 '09 at 13:03.

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