You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To model many-to-many relationships, I would like to submit a PR which introduces:
DynamicClassDefinition. Allows for customisable namespaces, names and base classes
A DynamicLateBoundProperty. This is similar to DynamicProperty however it allows multiple DynamicClassDefinition objects to be constructed simultaneously. This allows the Clr Types to be built with cyclic properties.
In my specific use case, its a runtime generated dynamic model, driven by user configuration so specific scenarios are more generalised into their base structure.
We have two such scenarios:
Model many to many relationships using two one to many relationships through the lookup entity/relationship in the middle. An example given above in the Post->PostTag->Tag example.
Parent/Child POCO objects where the Parent object has a collection-of-children property and the children have a property to access their parent.
As DynamicClassFactory stands at present, I cannot construct types of this nature.
To model many-to-many relationships, I would like to submit a PR which introduces:
Is this something that you would be open to?
Example models:
Example signatures:
Usage:
The text was updated successfully, but these errors were encountered: