Search Results for

    Show / Hide Table of Contents
    View Source

    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.

    Inheritance
    object
    BaseMapper
    Namespace: Umbraco.Cms.Infrastructure.Persistence.Mappers
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    [MapperFor(typeof(KeyValue))]
    [MapperFor(typeof(IKeyValue))]
    public sealed class KeyValueMapper : BaseMapper

    Constructors

    View Source

    KeyValueMapper(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 Source

    DefineMaps()

    Declaration
    protected override void DefineMaps()
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX