The value AppData makes sure that all of your models will be generated into the App_Data/Models folder.
After you have edit the web config re run your application, go to the developer section and then at the top menu you will find the Models Builder tab where you can generate the models.
After that you can include your model classes in your solution and use them.
Avoid creating Umbraco.Web.PublishedContentModels.dll
Hi!
Fairly new to ModelsBuilder, so forgive me if its a stupid question.
How do I avoid getting Umbraco.Web.PublishedContentModels.dll build?
I am currently using :
because I want the models-classes built in the App_Data/Models-folder.
I do not want the Umbraco.Web.PublishedContentModels.dll build, since the models are included in my WebProject .dll when it is built.
Best regards Jesper
Hi Jesper,
If you want to use general model classes instead of a dll you should edit your web config to the following:
The value AppData makes sure that all of your models will be generated into the
App_Data/Models
folder.After you have edit the web config re run your application, go to the developer section and then at the top menu you will find the Models Builder tab where you can generate the models.
After that you can include your model classes in your solution and use them.
Hope this helps!
/Michaël
Thank you - I'll give it a shot :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.