Exemple #1
0
        public void UpdateGDInformationStatusById(int id, int statusId)
        {
            var gD = _context.GDInformation.Where(x => x.Id == id).FirstOrDefault();

            gD.statusId = statusId;
            _context.Entry(gD).State = EntityState.Modified;
            _context.SaveChanges();
        }
Exemple #2
0
 /// <summary>
 /// 增加一条记录
 /// </summary>
 /// <param name="entity"></param>
 public void Instert(TEntity entity)
 {
     Table.Add(entity);
     _dbContext.SaveChanges();
 }