Class KeyValueMapper
Provides mapping configuration between the KeyValue entity and its corresponding database schema.
Used by the persistence layer to translate entity properties to database columns for CRUD operations.
Namespace: Umbraco.Cms.Infrastructure.Persistence.Mappers
Assembly: Umbraco.Infrastructure.dll
Syntax
[MapperFor(typeof(KeyValue))]
[MapperFor(typeof(IKeyValue))]
public sealed class KeyValueMapper : BaseMapper
Constructors
View SourceKeyValueMapper(Lazy<ISqlContext>, MapperConfigurationStore)
Initializes a new instance of the KeyValueMapper class.
Declaration
public KeyValueMapper(Lazy<ISqlContext> sqlContext, MapperConfigurationStore maps)
Parameters
| Type | Name | Description |
|---|---|---|
| Lazy<ISqlContext> | sqlContext | A System.Lazy<T> providing access to the SQL context for database operations. |
| MapperConfigurationStore | maps | The MapperConfigurationStore containing mapper configurations. |
Methods
View SourceDefineMaps()
Declaration
protected override void DefineMaps()