Call function in query in Entity framework 3.5
Posted
by Ashwani K
on Stack Overflow
See other posts from Stack Overflow
or by Ashwani K
Published on 2010-05-12T11:06:51Z
Indexed on
2010/05/12
13:34 UTC
Read the original article
Hit count: 270
entity-framework
|c#3.0
Hello All:
I am trying to run following query in entity framework 3.5
var test = from e in customers where IsValid(e) select e;
Here IsValid function takes current customer and validate against some conditions and returns false or true. But when I am trying to run the query it is giving error "LINQ Method cannot be translated into a store expression." Can any body tell me any other approach?
One approach I can think of is to write all validation conditions here, but that will make the code difficult to read.
Thanks Ashwani
© Stack Overflow or respective owner