Original data like models have and returning it merged #606
wijzijnweb
started this conversation in
Ideas
Replies: 1 comment
-
It is an interesting solution, I myself would keep this somewhere apart if it is required. Or just set the properties. But if it works that's great! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
Not sure if this is a good idea or not.
But I stumbled upon a situation where I did add some dynamic attributes to a model.
As soon as I transformed it to a Data class those attributes were gone because it isn't a property on the Data class.
I don't really want to add it on the Data class since it's data that isn't used everywhere just a combined label (string) from a grouped model.
I came up with this in my BaseData class:
Wondering if any of you think this is a good idea or maybe keeping the original data aside?
Beta Was this translation helpful? Give feedback.
All reactions