Class NullableDateMapper
Extends NPoco default mapper and ensures that nullable dates are not saved to the database.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.Persistence.Mappers
Assembly: Umbraco.Infrastructure.dll
Syntax
public class NullableDateMapper : DefaultMapper
Methods
View SourceGetToDbConverter(Type, MemberInfo)
Declaration
public override Func<object, object>? GetToDbConverter(Type destType, MemberInfo sourceMemberInfo)
Parameters
Type | Name | Description |
---|---|---|
Type | destType | |
System.Reflection.MemberInfo | sourceMemberInfo |
Returns
Type | Description |
---|---|
System.Nullable<Func<System.Object, System.Object>> |