Class UserMapper
Provides mapping logic between the User entity and its database representation.
Namespace: Umbraco.Cms.Infrastructure.Persistence.Mappers
Assembly: Umbraco.Infrastructure.dll
Syntax
[MapperFor(typeof(IUser))]
[MapperFor(typeof(User))]
public sealed class UserMapper : BaseMapper
Constructors
View SourceUserMapper(Lazy<ISqlContext>, MapperConfigurationStore)
Initializes a new instance of the UserMapper class.
Declaration
public UserMapper(Lazy<ISqlContext> sqlContext, MapperConfigurationStore maps)
Parameters
| Type | Name | Description |
|---|---|---|
| Lazy<ISqlContext> | sqlContext | A lazy-loaded SQL context used for database operations. |
| MapperConfigurationStore | maps | The configuration store containing mapper definitions. |
Methods
View SourceDefineMaps()
Declaration
protected override void DefineMaps()