Beispiel #1
0
        public static void recordTran(string item, int amt)
        {
            MakerspaceDataDataContext db = new MakerspaceDataDataContext();
            Tran trans = new Tran {
                UNI = App.UNI, amount = amt, ItemName = item, date = DateTime.Now, Id = System.Guid.NewGuid()
            };

            db.Trans.InsertOnSubmit(trans);
            try { db.SubmitChanges(); }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #2
0
 public static void recordTran(string item, int amt)
 {
     MakerspaceDataDataContext db = new MakerspaceDataDataContext();
     Tran trans = new Tran { UNI = App.UNI, amount = amt, ItemName = item, date = DateTime.Now, Id = System.Guid.NewGuid() };
     db.Trans.InsertOnSubmit(trans);
     try { db.SubmitChanges(); }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Beispiel #3
0
 partial void DeleteTran(Tran instance);
Beispiel #4
0
 partial void UpdateTran(Tran instance);
Beispiel #5
0
 partial void InsertTran(Tran instance);
Beispiel #6
0
 partial void DeleteTran(Tran instance);
Beispiel #7
0
 partial void UpdateTran(Tran instance);
Beispiel #8
0
 partial void InsertTran(Tran instance);