I'm having problems comparing objects in an entity Framework 4.0. After searching a lot of time, I found a blog post in 2008 that talked about my problem and why this is happening. A blog post detailing my problem .
To summarize a blog post, you cannot perform a normal mapping of objects to an EF structure. for instance
public Foo { public int ID{get;set;} public string Name {get;set;}
System.NotSupportedException: Cannot create a constant value of type "Foo". In this context, only primitive types (such as Int32, String, and Guid) are supported.
It is designed according to MicroSoft.
Can someone point me aside to find out if such a comparison of objects is supported if I do some kind of magical interface or magical overload? many thanks!
source share