-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Typed Models Support #1306
Comments
This should be largely supported once we allow full entities to be represented in shadow state. You'll be able to create a model without any CLR classes and then query/manipulate/save data. @Riva81 do you have any particular requirements that you don't think will be met by this? |
I will give r7 a go and let you know. I have an application that consists of around 123 or so entities and I am putting my faith in EF6.x. I hate to go in and implement 123 classes with 123 WebAPI controllers. A good balance is 123 classes and one controller that will support CRUD operations for all entity types- maybe an expando with an entry that specifies the entity type. My DB Context will just pick that Expando object up and know what to do with it. Similarly I should be able to return an expando or dynamic object from DB context select queries. It will be interesting to see how annotations will work with shadow state entities. |
Currently we don't support full entities in shadow state (you still have to have an actual CLR class for each entity). We will enable it in the future though (issue #749). The way shadow state currently works, any shadow properties (or entities when supported) are stored in the ChangeTracker and can be read/written thru that API. |
Closing out as there hasn't been anymore discussion but feel free to re-open if you have further questions. |
Can you add support for dynamic typed models?
For example
I specify my model and table mappings in JSON or XML format, EF gives me dynamic objects with maybe an entityname property. This is extremely useful for large applications containing a huge number of entities
The text was updated successfully, but these errors were encountered: