public static Telegram FromDo(TelegramDo telegramDo) { return(new Telegram { Id = telegramDo.Id, ReceivedAt = telegramDo.ReceivedAt, Ticks = Bytes2Units(telegramDo.TickBytes).ToArray(), TicksPerSecond = telegramDo.TicksPerSecond }); }
public int Add(TelegramDo telegramDo) { return(_conn.Insert(telegramDo)); }