Coalesce icon indicating copy to clipboard operation
Coalesce copied to clipboard

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

Open Artem-Chet opened this issue 1 week ago • 0 comments

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

Artem-Chet avatar Feb 14 '25 19:02 Artem-Chet