Exemplo n.º 1
0
        public object ToObject(DbValue item, IMember member)
        {
            if (member?.Precision == 4)
            {
                return(DateTimeOffset.FromUnixTimeMilliseconds(item.ToInt64()).UtcDateTime);
            }

            return(DateTimeOffset.FromUnixTimeSeconds(item.ToInt64()).UtcDateTime);
        }
Exemplo n.º 2
0
 public object ToObject(DbValue item, IMember member) => item.ToInt64();