Reputation: 1975
I worked on exists umbraco project, and in this project there is a model builder button that generate model and I can copy them to my visual studio and use them as model.
Now I started a new project, but In the new App I don't have the generate model button
This is my Previous Project And this is my current project (without the generate model button)
How can I add models builder to my project, And How can I know which model builder uses on my previous project.
Upvotes: 1
Views: 2195
Reputation: 1728
You have PureLive models configuration set up, which means exactly that your models are autogenerated and you don't need to fire it up via button. It may be helpful but also dangerous :)
The configuration is in you web.config file and you can change the mode of storing models there.
<add key="Umbraco.ModelsBuilder.Enable" value="true" />
<add key="Umbraco.ModelsBuilder.ModelsMode" value="Dll" />
Check more info at Stephan's Wiki: https://github.com/zpqrtbnk/Zbu.ModelsBuilder/wiki/UsingTheModelsBuilder and choose the best way to handle models inside your instance of Umbraco.
Upvotes: 2