Hi,
I am using EF4 and I am getting an error with my custom property. I have 2 properties in my Application class, namely Initials and Surname. It is a partial class. I created a custom property in my Application class called Owner, and it looks like this:
public partial class Application
{
public string Owner
{
get
{
return Initials + " " + Surname;
}
}
}
When I add it to my grid like this:
m => m.Owner
Then I get the following error:
The specified type member 'Owner' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.
How do I fix this?
Thanks Brendan