private void Fill(DbDataReader reader, Message message) { message.ConversationId = reader.GetValueObject <long>("convo_id"); message.ChatName = reader.GetObject <string>("chatname"); message.Text = reader.GetObject <string>("body_xml"); message.Author = reader.GetObject <string>("author"); var stamp = reader.GetValueObject <long>("timestamp"); message.Timestamp = DateUtils.ConvertFromLinuxStamp(stamp); }
private void Fill(DbDataReader reader, Message message) { message.ConversationId = reader.GetValueObject<long>("convo_id"); message.ChatName = reader.GetObject<string>("chatname"); message.Text = reader.GetObject<string>("body_xml"); message.Author = reader.GetObject<string>("author"); var stamp = reader.GetValueObject<long>("timestamp"); message.Timestamp = DateUtils.ConvertFromLinuxStamp(stamp); }