A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
Hi Vojislavekli-7484,
>>What is the best way to get Items with all properties for both Phone and Sim?
Query basic entities(Item) will get the results of all entities in the hierarchy.
If I misunderstood what you mean, please explain in detail.
>>what is the best way to distinguish what is type od item.
TPH uses a single table to store the data for all types in the hierarchy, and a discriminator column is used to identify which type each row represents.
The discriminator can be configured to distinguish different types.
More details please refer to this document.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.