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()); } }
partial void DeleteTran(Tran instance);
partial void UpdateTran(Tran instance);
partial void InsertTran(Tran instance);