London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Interface IContentTypeModelScanner

Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public interface IContentTypeModelScanner

Properties

ContentTypes

Gets content types in the system.

Declaration
IEnumerable<Type> ContentTypes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Type>

Methods

GetProperties(ContentTypeModel)

Gets properties on the modelType.

Declaration
IEnumerable<PropertyInfo> GetProperties(ContentTypeModel modelType)
Parameters
Type Name Description
ContentTypeModel modelType

The model to get properties from.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo>

RegisterModels()

Registers the models.

Declaration
IList<Task> RegisterModels()
Returns
Type Description
System.Collections.Generic.IList<System.Threading.Tasks.Task>

Sync(Boolean)

Creates ContentTypeModels from the relevant types stored in the IScannedTypeRepository.

Declaration
IList<Task> Sync(bool forceCommit)
Parameters
Type Name Description
System.Boolean forceCommit

if set to true then stores in repository.

Returns
Type Description
System.Collections.Generic.IList<System.Threading.Tasks.Task>

A list of started tasks.

Remarks

The registration is complete when all returned task are completed.

Extension Methods