Open roji opened 1 year ago
In the meantime, can the exception message be updated to reflect that non-tables are not supported? It still says "An entity type that isn't mapped to a table must be mapped to insert, update and delete stored procedures." but the code doesn't allow any SP mapping to non-tables.
Stored procedure mapping (#28553) currently requires that a table mapping be defined; the table mapping is necessary in order for us to properly perform topological sort (e.g. know about dependencies between tables). It makes sense for users to use views/functions for querying and only sprocs for updating, in which case a table mapping isn't strictly speaking necessary.
See conversation in https://github.com/dotnet/efcore/pull/28553#discussion_r943731844