Class ElementMapper
Represents a Element to DTO mapper used to translate the properties of the public api implementation to that of the database's DTO as sql: [tableName].[columnName].
Namespace: Umbraco.Cms.Infrastructure.Persistence.Mappers
Assembly: Umbraco.Infrastructure.dll
Syntax
[MapperFor(typeof(Element))]
[MapperFor(typeof(IElement))]
public sealed class ElementMapper : BaseMapper
Constructors
View SourceElementMapper(Lazy<ISqlContext>, MapperConfigurationStore)
Initializes a new instance of the ElementMapper class.
Declaration
public ElementMapper(Lazy<ISqlContext> sqlContext, MapperConfigurationStore maps)
Parameters
| Type | Name | Description |
|---|---|---|
| Lazy<ISqlContext> | sqlContext | The lazily-initialized SQL context used for building SQL expressions. |
| MapperConfigurationStore | maps | The mapper configuration store that holds the property-to-column mappings. |
Methods
View SourceDefineMaps()
Declaration
protected override void DefineMaps()