I've an Entity Framework model (v.1.0) that I'm trying to extends with a calculated property.
I've created the partial class to extend the entity object "Offer" in this way:
namespace MyModelNamespace
{
public partial class Offer
{
public bool MyProperty
{
get
{
// my stuffs the return true or false
}
}
}
}
It compiles without problem in my assembly, but at runtime, when I'm trying to do something like this:
_myEntities.OfferSet.FirstOrDefault(o=>o.MyProperty);
I retrieve this error:
The number of members in the conceptual type 'MyModelNamespace.Offer' does not match with the number of members on the object side type 'MyModelNamespace.Offer'. Make sure the number of members are the same.
...any suggestions???