Class DataTypeMapper
Represents a DataType 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(DataType))]
[MapperFor(typeof(IDataType))]
public sealed class DataTypeMapper : BaseMapper
Constructors
View SourceDataTypeMapper(Lazy<ISqlContext>, MapperConfigurationStore)
Initializes a new instance of the DataTypeMapper class.
Declaration
public DataTypeMapper(Lazy<ISqlContext> sqlContext, MapperConfigurationStore maps)
Parameters
| Type | Name | Description |
|---|---|---|
| Lazy<ISqlContext> | sqlContext | A lazily-initialized ISqlContext used for database operations. |
| MapperConfigurationStore | maps | The MapperConfigurationStore containing mapper configurations. |
Methods
View SourceDefineMaps()
Declaration
protected override void DefineMaps()