示例#1
0
 public void Update(TEntity tEntity)
 {
     _dbSet.Attach(tEntity);
     _dbContext.Entry(tEntity).State = EntityState.Modified;
 }