Table of Contents

Class ContentTypeTypeAssembler

Namespace
ToSic.Eav.Data.Build.Sys
Assembly
ToSic.Eav.Data.Build.dll

Internal assembler for ContentTypes. The name is a bit strange, to differentiate it from ContentTypeAssembler.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class ContentTypeTypeAssembler
Inheritance
object
ContentTypeTypeAssembler

Fields

DynTypeId

public const int DynTypeId = 1

Field Value

int

Methods

Create(int, string, string, int, string, IList<IContentTypeAttribute>?, bool, bool, int?, int, int, RepositoryTypes, string?, ContentTypeMetadata?, bool?, string?, List<IDecorator<IContentType>>?)

public IContentType Create(int appId, string name, string nameId, int id, string scope, IList<IContentTypeAttribute>? attributes = null, bool isAlwaysShared = false, bool isDynamic = false, int? parentTypeId = null, int configZoneId = 0, int configAppId = 0, RepositoryTypes repositoryType = RepositoryTypes.Sql, string? repositoryAddress = null, ContentTypeMetadata? metadata = null, bool? onSaveSortAttributes = null, string? onSaveUseParentStaticName = null, List<IDecorator<IContentType>>? decorators = null)

Parameters

appId int
name string
nameId string
id int
scope string
attributes IList<IContentTypeAttribute>
isAlwaysShared bool
isDynamic bool
parentTypeId int?
configZoneId int
configAppId int
repositoryType RepositoryTypes
repositoryAddress string
metadata ContentTypeMetadata
onSaveSortAttributes bool?
onSaveUseParentStaticName string
decorators List<IDecorator<IContentType>>

Returns

IContentType

CreateFrom(IContentType, int?, string?, string?, int?, string?, IList<IContentTypeAttribute>?, bool?, bool?, RepositoryTypes?, string?, int?, int?, int?, ContentTypeMetadata?, IEnumerable<IEntity>?)

public IContentType CreateFrom(IContentType original, int? appId = null, string? name = null, string? nameId = null, int? id = null, string? scope = null, IList<IContentTypeAttribute>? attributes = null, bool? isAlwaysShared = null, bool? isDynamic = null, RepositoryTypes? repoType = null, string? repoAddress = null, int? parentTypeId = null, int? configZoneId = null, int? configAppId = null, ContentTypeMetadata? metadata = null, IEnumerable<IEntity>? metadataItems = null)

Parameters

original IContentType
appId int?
name string
nameId string
id int?
scope string
attributes IList<IContentTypeAttribute>
isAlwaysShared bool?
isDynamic bool?
repoType RepositoryTypes?
repoAddress string
parentTypeId int?
configZoneId int?
configAppId int?
metadata ContentTypeMetadata
metadataItems IEnumerable<IEntity>

Returns

IContentType

Transient(int, string, string, string?)

public IContentType Transient(int appId, string typeName, string nameId, string? scope = null)

Parameters

appId int
typeName string
nameId string
scope string

Returns

IContentType

Transient(string)

public IContentType Transient(string typeName)

Parameters

typeName string

Returns

IContentType