Esempio n. 1
0
 public void Update <T>(T obj)
 {
     _context.Entry(obj).State = EntityState.Modified;
 }
 public void Update(SystemUsers user)
 {
     _context.Entry(user).State = EntityState.Modified;
     _context.Entry(user).Property(x => x.CreatedBy).IsModified   = false;
     _context.Entry(user).Property(x => x.CreatedDate).IsModified = false;
 }