Class UmbracoDefaultMapper
Provides default type conversion logic for mapping Umbraco database values to .NET types, extending the base mapping behavior with support for additional types such as decimal, DateOnly, and TimeOnly.
Inheritance
object
DefaultMapper
Namespace: Umbraco.Cms.Core.Mapping
Assembly: Umbraco.Infrastructure.dll
Syntax
public class UmbracoDefaultMapper : DefaultMapper
Methods
View SourceGetFromDbConverter(Type, Type)
Declaration
public override Func<object, object?> GetFromDbConverter(Type destType, Type sourceType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | destType | |
| Type | sourceType |
Returns
| Type | Description |
|---|---|
| Func<object, object> |