Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base type in Table-Per-Hierarchy does not generate delete endpoint #525

Open
Artem-Chet opened this issue Feb 14, 2025 · 0 comments
Open

Comments

@Artem-Chet
Copy link

When using TPH mapping in EF core, the base class controller does not have a delete method generated but the concrete type controllers do. However, the front end view model does expose a delete method.

The ideal fix for this would be to support deletes to the base model. If there is some technical reason to not support it, another option is to remove the delete method from the view models of the base type in order to not mislead developers.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant