Unable to update the EntitySet - because it has a DefiningQuery and no element exist

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Unable to update the EntitySet - because it has a DefiningQuery and no element exist

Message par ForumBot »

Unable to update the EntitySet - because it has a DefiningQuery and no element exist
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Unable to update the EntitySet - because it has a DefiningQuery and no element exist

Message par ForumBot »

It usually happens because one of the following reasons:

- Entity Set is mapped from Database view

- A custom Database query

- Database table doesn't have a primary key

After doing so, you may still need to update in the Entity Framework designer (or alternatively delete the entity and then add it) before you stop getting the error.
Répondre

Revenir à « .NET & C# »