Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Generating Models

Dave Greasley edited this page Aug 22, 2015 · 5 revisions

Once Concrete is installed in order to generate your models you simply need to save a Content Type or Media Type in the back office.

Due to the complex relationship between Content Types all model classes will be regenerated when you save any Content Type or Media Type.

C# classes will be written for ALL Content Types and Media Types defined in Umbraco. There is currently no way of specifying particular types to be ignored.

The C# files will be created in the directory specified in the ConcreteContentTypes.config file.

Once the files have been created you will need to include them into a Visual Studio project. You will have to include the generated files the first time they are generated but after that they will just update. If you create a new Content Type it will have a class generated and you will have to include this in your project in order to use it.

Clone this wiki locally