private void InsertLegacySerializer(ColumnTypeCode typeCode, ITypeAdapter typeAdapter, bool reverse)
        {
            var type             = typeAdapter.GetDataType();
            var legacySerializer = new LegacyTypeSerializer(typeCode, typeAdapter, reverse);

            _primitiveSerializers[type]       = legacySerializer;
            _primitiveDeserializers[typeCode] = legacySerializer;
            _defaultTypes[typeCode]           = _ => type;
        }
Пример #2
0
 private void InsertLegacySerializer(ColumnTypeCode typeCode, ITypeAdapter typeAdapter, bool reverse)
 {
     var type = typeAdapter.GetDataType();
     var legacySerializer = new LegacyTypeSerializer(typeCode, typeAdapter, reverse);
     _primitiveSerializers[type] = legacySerializer;
     _primitiveDeserializers[typeCode] = legacySerializer;
     _defaultTypes[typeCode] = _ => type;
 }