The specified type member 'EntityKey' is not supported in LINQ to Entities?

I would go the easer route p.UserProfile. UserId = UserId is your solution This is assuming that the UserId is your primary key for the table Searching by EntityKey does not make it conceptual. The conceptual piece comes when you are presenting a layer that presents your db layer in a different way Did I misunderstand your view of conceptual?

I would go the easer route p.UserProfile. UserId = UserId is your solution. This is assuming that the UserId is your primary key for the table.

Searching by EntityKey does not make it conceptual. The conceptual piece comes when you are presenting a layer that presents your db layer in a different way. Did I misunderstand your view of conceptual?

Try this... First, override the Equals() (and GetHashCode()) methods in your entity objects. The two entity objects should be equal if they are the same type and their IDs are equal. Next, use this operation public IQueryable GetAgentListByUserProfile(UserProfile userProfile) { var agentObjects = this.DataContext.

AgentSet; var results = (from p in agentObjects where p. UserProfile == userProfile select p); return results; }.

"The specified type member 'EntityKey' is not supported in LINQ to Entities. Where(o => o. EntityKey == other.

"The specified type member 'EntityKey' is not supported in LINQ to Entities. Am I trying to do something that is not currently supported, is fundamentally invalid or have I made a mistake in my coding? Effectively, you can't.

You have to use directly the properties of your EntityKey. Where(o => o. EntityKey == other.

Matthieu is right. LinqToEntities doesn't support the EntityKey property on the object. However, I would like to understand why would you want to use EntityKey when you have access to the object itself.

If you are trying to filter an entityset based on a key, you should be able to invoke it directly. Where(c => c.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions