private void UpdateDatabase(BotAccount current) { current.RaisePropertyChanged("RuntimeTotal"); current.RaisePropertyChanged("IsRunning"); using (var db = new LiteDatabase(ACCOUNT_DB_NAME)) { var accountdb = db.GetCollection <BotAccount>("accounts"); accountdb.Update(current); } }
public void UpdateDatabase(BotAccount current) { current.RaisePropertyChanged("Nickname"); current.RaisePropertyChanged("RuntimeTotal"); current.RaisePropertyChanged("IsRunning"); current.RaisePropertyChanged("Level"); current.RaisePropertyChanged("LastLogin"); current.RaisePropertyChanged("LastLoginTimestamp"); using (var db = new LiteDatabase(ACCOUNT_DB_NAME)) { var accountdb = db.GetCollection <BotAccount>("accounts"); accountdb.Update(current); } }