modelsbuilder/ModelsBuilder.Original

Allow use of Models Builder for non content models

Opened this issue · 4 comments

As a package developer building a bolt on to Umbraco, if my package supports creating somewhat dynamically defined models, it would be great if we could extend MB to allow other types of models to be generated. For example, say you have an ecommerce bolt on that has an order model that can hold custom properties, it would be great if these custom properties could be strongly typed in the front end view.

I'd like to start a discussion to work out what would be needed to be able to abstract away the specific umbraco dependencies such that custom implementations could be used allowing custom models building.

Not knowing the MB codebase at the moment, it would be good to know if this is possible / wanted and also an idea of what areas would need to change to make it happen. I'd be happy to get involved, but it would be good to know where to start :)

Is there still value discussing this? Or am I too late?

@zpqrtbnk definitely still value. Reach out if you wanna chat 👍

I wanna chat ;-) Can it happen here, or want to call?

IIC you'd want to generate models for "types" that are not true "content types" in Umbraco, yet exist somehow in your app?

@zpqrtbnk happy to have it happen where ever is best.

Yup, basically. If you have some dynamic model definition, would be cool to pass to models builder a definition and have it generate the type and then allow for creating those types and passing the values in.