Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Models Builder: Which are the options and why?
Explain your opinions and experience.
Usually, I use Pure Live option on the live site.
And Dll mode on my local machine, because if you would use Pure Live locally, IntelliSense will not work.
It's quite annoying to use Dll mode locally if you do a lot of changes in the backend, but I usually do not change a lot in the backend :) that's why I don't need to regenerate the model and that's why it's better for me locally to use Dll mode.
I like the AppData or API options since you get the page models as class files that include you in your project. API option is if you want the models in a separate reference project rather than in your web project.
Thanks. Why a lot options?
I think some of the reasoning behind it is to allow people to use Umbraco without having to compile code in Visual Studio. But I think all the options can be confusing to new developers.
I know that some options are good for us , developers like API or AppData, but ...
I'm Stephan, MB creator and maintainer.
Why a lot of options?
Why a lot of options?
Because people asked for them ;-)
PureLive was created because it looks cool. And it is cool to use during development phases. It has some drawbacks, though: models can only be used in views. Plus, it is more or less like having your application code files in the App_Code folder: anytime the site restarts, some compilation has to happen. For that reason, usage of PureLive in production is not recommended.
So what should you use? (Or, what do I use?)
I use the API mode with the Visual Studio Extension in all my projects. As soon as you have a Visual Studio solution for your project, I think that is the easiest way. And, the extension is going to evolve in the future, with better error reporting etc.
If your project does not have a Visual Studio solution... or you don't use Visual Studio... then LiveAppData is a good way to generate the files and include them when building the site. It can be "live": it saves a click, and does not hurt.
I know some people also use Dll. And then copy the dll over to their project. But I (and they, at times) find it somewhat confusing, and would avoid it.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted