I'm used to developing with EPiServer and creating my models in different classes. That way the models will follow the solution when you move from a development enviroment to production. I'm currently using Umbraco version 8 and modelsbuilder with "dll" mode (which of course is good since models get strongly typed). It seems like I still have to manually create the models in each enviroment?
Is there a recommended way of handling this in Umbraco or do just have to bite the bullet and create the models manually in each enviroment (I don't want to move the whole database - only the models/dlls)?
With Umbraco the page types are stored in the database. You need to sync these somehow, either manually or by some sort of package. I highly recommend trying out uSync to do this. uSync will write definitions of page types, data types etc to file and can sync the changes from these files in another environment.
As for models builder, I would suggest either LiveAppData mode or API mode. That way the models are generated as code/.cs files that you include and compile in your project.
Move models from development to production
Hi!
I'm used to developing with EPiServer and creating my models in different classes. That way the models will follow the solution when you move from a development enviroment to production. I'm currently using Umbraco version 8 and modelsbuilder with "dll" mode (which of course is good since models get strongly typed). It seems like I still have to manually create the models in each enviroment?
Is there a recommended way of handling this in Umbraco or do just have to bite the bullet and create the models manually in each enviroment (I don't want to move the whole database - only the models/dlls)?
I've gotten no replies on this one... Anyone?
With Umbraco the page types are stored in the database. You need to sync these somehow, either manually or by some sort of package. I highly recommend trying out uSync to do this. uSync will write definitions of page types, data types etc to file and can sync the changes from these files in another environment.
As for models builder, I would suggest either LiveAppData mode or API mode. That way the models are generated as code/.cs files that you include and compile in your project.
Regards, Magnus
Thanks for the advice Magnus! I'll check that out...
is working on a reply...