Exemple #1
0
 public void Modify()
 {
     using (var db = new WXDBContext())
     {
         db.PayNotifyInfo.Attach(this);
         db.Entry(this).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
Exemple #2
0
        public void Modify(ShortMsg entity)
        {
            _context.ShortMsg.Attach(entity);
            _context.Entry(entity).State = EntityState.Modified;
//            _context.SaveChanges();
        }