Add ODB mapping registration for IPv6
parent
02503a5908
commit
baaffcdea6
|
@ -107,6 +107,11 @@ namespace ln.types.odb.ng
|
|||
RegisterMapping<IPv4>(
|
||||
(mapper, value) => new ODBUInteger(value.AsUInt),
|
||||
(mapper, oval) => new IPv4(oval.As<uint>())
|
||||
);
|
||||
|
||||
RegisterMapping<IPv6>(
|
||||
(mapper, value) => new ODBByteBuffer(value.ToCIDRBytes()),
|
||||
(mapper, oval) => new IPv6((oval.As<byte[]>()))
|
||||
);
|
||||
|
||||
ObjectMapping = new mappings.ObjectMapping();
|
||||
|
|
Loading…
Reference in New Issue