Skip to content
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

Closed
lvasiliou opened this issue Dec 17, 2014 · 4 comments
Closed

Dynamic Typed Models Support #1306

lvasiliou opened this issue Dec 17, 2014 · 4 comments
Assignees
Milestone

Comments

@lvasiliou
Copy link

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

@rowanmiller
Copy link
Contributor

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?

@rowanmiller rowanmiller added this to the Discussions milestone Jan 5, 2015
@rowanmiller rowanmiller self-assigned this Jan 5, 2015
@lvasiliou
Copy link
Author

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.

@rowanmiller
Copy link
Contributor

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.

@rowanmiller
Copy link
Contributor

Closing out as there hasn't been anymore discussion but feel free to re-open if you have further questions.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants