Add constants for property aliases to ModelsBuilder #13994
Replies: 2 comments 19 replies
-
Wouldn't Anyways - based on past comments from Umbraco HQ, it doesn't seem like they are going to add new features to the build-in Models Builder. But if you can come up a good example on how to expose the property aliases, I'd be happy to add something like this to my custom Models Builder. |
Beta Was this translation helpful? Give feedback.
-
Hey all! We've enjoyed and spent quite a bit of time all contemplating your feature wishes and the many varying opinions on what's the best solution. After listening to your wishes, edge cases and possible conflicts in generating classes we came to the following conclusion:
Therefore, we'd like these kinds of changes to be tested out in the wild in a good variety of websites to see what works and what needs fixing up before it's reliable. To that end, we've merged #12210 that will allow anyone to implement their own We definitely realize that this means copying a lot of our code into that generator but in the end we think this is best for the stability of the CMS. And finally a thanks to everyone for chiming in here, we love the engagement! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, the only way to sanely retrieve property aliases is by using the information in the
ImplementPropertyType
-attribute. This has a runtime overhead because you will have to use reflection to get to it.Please add constants for all aliases like you do with
ModelTypeAlias
.The use case of this would be when you are working with an
IContent
, instead of anIPublishedContent
.Beta Was this translation helpful? Give feedback.
All reactions