Esempio n. 1
0
 public void Addvister()
 {
     db = new dbVuonRauVietDataContext();
     var _hitTotal = db.GetTable<ESHOP_CONFIG>();
     _hitTotal.ToList()[0].CONFIG_HITCOUNTER = _hitTotal.ToList()[0].CONFIG_HITCOUNTER + 1;
     db.SubmitChanges();
     
     
 }
 public void Addvister()
 {
     var _hitTotal = db.GetTable<ESHOP_CONFIG>();
     _hitTotal.ToList()[0].CONFIG_HITCOUNTER = _hitTotal.ToList()[0].CONFIG_HITCOUNTER + 1;
     db.SubmitChanges();
     db = new dbVuonRauVietDataContext();
     ESHOP_HITCOUNTER hit = new ESHOP_HITCOUNTER();
     var now = DateTime.Now;
     var hitdate = new DateTime(now.Year, now.Month, now.Day);
     hit.HIT_DATE = hitdate;
     hit.HIT_VALUE = 1;
     db.ESHOP_HITCOUNTERs.InsertOnSubmit(hit);
     db.SubmitChanges();
 }