This is a migrated thread and some comments may be shown as answers.

[Solved] Do somebody use Entity Framework as OR Mapper in behind

4 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mladen
Top achievements
Rank 1
mladen asked on 03 Mar 2010, 10:58 AM
Hi,
is there somebody using the grid with Entity Framework?

Because of the POCO Adapter (or Proxy/ Change Tracking) the LINQ Statements do not work. For example, using the filter in the grid will throw
[InvalidOperationException: Der binäre Operator NotEqual ist für die Typen "Data.Domain.PocoAdapters.LogAdapter" und "Data.Domain.Log" nicht definiert.] 
   System.Linq.Expressions.Expression.GetEqualityComparisonOperator(ExpressionType binaryType, String opName, Expression left, Expression right, Boolean liftToNull) +754383 
   System.Linq.Expressions.Expression.NotEqual(Expression left, Expression right, Boolean liftToNull, MethodInfo method) +53 
   System.Linq.Expressions.Expression.MakeBinary(ExpressionType binaryType, Expression left, Expression right, Boolean liftToNull, MethodInfo method, LambdaExpression conversion) +239 
   System.Linq.Expressions.Expression.MakeBinary(ExpressionType binaryType, Expression left, Expression right, Boolean liftToNull, MethodInfo method) +20 
   EFPocoAdapter.Internal.ExpressionVisitor.VisitBinary(BinaryExpression b) +386 
Do anybody have some tips or workarounds?

Thx
Mladen

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Mar 2010, 11:48 AM
Hello Mladen Miljic,

I have attached a working page showing binding to Entity Framework. What is different in your case? Which version are you using? Can you make this example break in some way so we can reproduce the problem locally?

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
mladen
Top achievements
Rank 1
answered on 04 Mar 2010, 02:35 PM
Hi Atanas,

thx for the fast response. I will prepare an example which I can give you (my current one is too big).

Kind Regards,
Mladen
0
Atanas Korchev
Telerik team
answered on 04 Mar 2010, 02:51 PM
Hello Mladen Miljic,

You can send it to atanas.korchev at telerik.com.

Best wishes,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
mladen
Top achievements
Rank 1
answered on 08 Mar 2010, 03:04 PM
Hi,

this happens when using POCO adapter. I am not able to reproduce that with EF 1.0 (wthout POCOs) or EF 4.0.

Thanks for you help.

Kind regards,
Mladen
Tags
Grid
Asked by
mladen
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
mladen
Top achievements
Rank 1
Share this question
or