Add Or Condition to Entity in Entity Framework

Posted by Blakewell on Stack Overflow See other posts from Stack Overflow or by Blakewell
Published on 2010-04-02T19:44:39Z Indexed on 2010/04/02 19:53 UTC
Read the original article Hit count: 589

Can you add an "Or" condition to an entity in the entity framework? For example something like:

Property1 == (1 or 2 or 3)

The message I get when putting the value of "1 || 2 || 3" or "1,2,3" or "1 or 2 or 3" returns this message:

condition is not compatible with the type of the member

© Stack Overflow or respective owner

Related posts about entity-framework-4

Related posts about entity-framework