Ejemplo n.º 1
0
        public object ToObject(DbValue item, IMember member)
        {
            // Gracefully migrates from StringSets and custom binary provider to a List

            switch (item.Kind)
            {
            case DbValueType.SS: return(new StringList(item.ToStringSet()));

            case DbValueType.B: return(StringList.FromBytes(item.ToBinary()));

            case DbValueType.L: return(new StringList(item.ToArray <string>()));

            default: return(new StringList());
            }
        }
Ejemplo n.º 2
0
 public object ToObject(DbValue item, IMember member) => item.ToStringSet();