-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support for owned entities #54
Comments
Hi, I think for each Action can be added an opportunity to pass a specific type for each trigger. It can have the next syntax
This will require changes in the class |
I'm not quite sure about the differences from EF and EF Core, in the latter the type of the entities in the model is IEntityType. |
EF Core allows to retrieve information about any entity by its CLR type. |
The problem is that owned entities are not mapped to a CLR type, for example an owned Category could belong to a Shop or a Blog, and thus being mapped to two different tables, while being a single CLR type. |
I think this awesome library could support collection of owned entities, which get mapped to separate tables.
But I guess this would require some effort, because as of now all the triggers reference only generic types, and an owned type could have many underlying EF types, since it could be used in multiple entities.
I'm willing to help if you could guide me in what needs to be done in order to account for this.
I think that adding a reference to an EF entity would be enough, from there it could pick all the informations about the table, while all the generic methods would stay the same, since the columns are all the same.
The text was updated successfully, but these errors were encountered: