public IdentifierValueConverter(ConverterMappingHints mappingHints = null) : base( id => id.GetValue() == null ? default : (TDatabaseClrType)Convert.ChangeType(id.GetValue(), typeof(TDatabaseClrType)), value => new Identifier(value), mappingHints == null ? new ConverterMappingHints(valueGeneratorFactory: (p, t) => new IdentifierValueGenerator <TDatabaseClrType>()) : mappingHints.With(new ConverterMappingHints(valueGeneratorFactory: (p, t) => new IdentifierValueGenerator <TDatabaseClrType>())) ) { }
public TimeUuidToGuidConverter(ConverterMappingHints mappingHints = null) : base(ToGuid(), ToTimeUuid(), _defaultHints.With(_defaultHints)) { }