I have a task which requires me to return all models from a table using inheritance (TPH).
I have a model class called WorkflowInstance and a derived class CustomWorkflowInstance (which has a string property). There is a discriminator of course.
I want to know of a way where I can return all the elements without considering the discriminator
Set<WorkflowInstance>()returns all base and derived items (everything which is a base entity). - Ivan Stoevvar workflows = db.Set<WorkflowInstance>()->var customWorkflows = workflows.OfType<CustomWorkflowInstance>(). - Alexander Petrov