Beispiel #1
0
        private void AddHistory()
        {
            history  crtHistory = new history();
            DateTime crtDate    = DateTime.Now;

            crtHistory.currency_name = this.SelectedCoin;
            crtHistory.price         = this.currentPrice;
            crtHistory.search_date   = crtDate;
            User userByUsername = CryptoLinq.Users.First(u => u.username.Equals(Username));

            crtHistory.user_id = userByUsername.Id;

            CryptoLinq.histories.InsertOnSubmit(crtHistory);
            CryptoLinq.SubmitChanges();

            this.HistoryGrid.Items.Add(crtHistory);
        }
Beispiel #2
0
 partial void Deletehistory(history instance);
Beispiel #3
0
 partial void Updatehistory(history instance);
Beispiel #4
0
 partial void Inserthistory(history instance);
Beispiel #5
0
 private void detach_histories(history entity)
 {
     this.SendPropertyChanging();
     entity.User = null;
 }
Beispiel #6
0
 private void attach_histories(history entity)
 {
     this.SendPropertyChanging();
     entity.User = this;
 }