TPH and FunctionConvention

Oct 1, 2014 at 7:27 PM
I haven't started debugging the code yet, but I am playing with the following scenario:
  • the model contains a TPH table
  • the OnModelBuilding override correctly specifies the Discriminator for the TPH types
  • the stored procedure returns all columns (e.g. select * from...)
So far, it does not appear that any of the derived types are resolved. Is this expected?
Oct 2, 2014 at 12:08 PM
I answered this one for myself, although the documentation is not easily found. TPH mapping of stored procedures results are not directly supported by EF.
Coordinator
Oct 3, 2014 at 5:40 AM
Thanks for posting the update!