I’m currently developing a JobList API that interfaces between a SQL stored procedure and EntityFramework. I’ve created only one data model, but I’m facing an issue: when I try to retrieve a single job, it results in an error because the data model for the whole job list doesn’t match the data model for a single job. However, I can’t create a separate data model for every situation.
Is it possible to dynamically create a data model to match the single job retrieval while maintaining the whole list model?
I expected when i call single job list, entity framework dynamically create data model