Expression. How do I invoke Entity Framework?

.net entity-framework linq linq-to-entities

Question

The Entity Framework is incompatible with theExpression.Invoke operator. If you attempt to utilize it, you get the following exception:

"The LINQ expression node type 'Invoke' is not supported in LINQ to Entities.

Has anybody come up with a solution to this lack of functionality? In an Entity Framework environment, I want to utilize the PredicateBuilder described here.

@marxidad Edit 1 Although I enjoy your idea, I'm not really sure how it works. Can you provide any more guidance on the suggested solution?

@marxidad Edit 2 I appreciate the explanation.

1
29
1/12/2011 5:55:41 AM

Accepted Answer

Entity Framework is now supported by PredicateBuilder and LINQKit.

Guys, I apologize for not doing this sooner.

30
4/5/2009 4:56:19 AM

Popular Answer

Only the canonical functions of the Entity framework are supported inside the Entity Command trees that the Entity framework turns LINQ statements into. To implement anything similar to PredicateBuilder, you would need to employ command trees with canonical functions.



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow