Can't use filter with dynamic linq

entity-framework entity-framework-plus

Question

I tried to use ef plus for filtering data with following code

_context.Filter<TEntity>(x => x.Where(q => "q.Property == 1"));

And got an error. Am i doing something wrong?

Accepted Answer

Disclaimer: I'm the owner of the project Entity Framework Plus

Disclaimer: I'm the owner of the project Eval-Expression.NET

As specified in the introduction: http://entityframework-plus.net/linq-dynamic, LINQ Dynamic require the library Eval-Expression.NET (paid library) to work.

It should now work once you add this library in reference: https://www.nuget.org/packages/Z.Expressions.Eval/




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why