Class ConsentMapper
Represents a mapper for consent entities.
Namespace: Umbraco.Cms.Infrastructure.Persistence.Mappers
Assembly: Umbraco.Infrastructure.dll
Syntax
[MapperFor(typeof(IConsent))]
[MapperFor(typeof(Consent))]
public sealed class ConsentMapper : BaseMapper
Constructors
View SourceConsentMapper(Lazy<ISqlContext>, MapperConfigurationStore)
Initializes a new instance of the ConsentMapper class.
Declaration
public ConsentMapper(Lazy<ISqlContext> sqlContext, MapperConfigurationStore maps)
Parameters
| Type | Name | Description |
|---|---|---|
| Lazy<ISqlContext> | sqlContext | A lazy-initialized SQL context used for database operations. |
| MapperConfigurationStore | maps | The configuration store for mapper definitions. |
Methods
View SourceDefineMaps()
Declaration
protected override void DefineMaps()