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

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

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

Message par Clippy »

Unable to update the EntitySet - because it has a DefiningQuery and no element exist
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

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

Message par Clippy »

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# »