Interface IContentTypeModelRegistrator

Component that will register a list of content type models

Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public interface IContentTypeModelRegistrator

Methods

RegisterTypes(IEnumerable<ContentTypeModel>, Boolean, Boolean)

Analyzes all models and registers the content types and their property definitions.

Declaration
void RegisterTypes(IEnumerable<ContentTypeModel> typeModels, bool deleteUnusedContentTypes, bool deleteUnusedPropertyDefinitions)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ContentTypeModel> typeModels

List of all content type models that should be registered.

System.Boolean deleteUnusedContentTypes

If set to true any content types that are no longer used are deleted.

System.Boolean deleteUnusedPropertyDefinitions

If set to true any property definitions on that are no longer used are removed from the content type.

Extension Methods