public void Update(Tbl_Entity entity) { _dbSet.Attach(entity); _DBEntity.Entry(entity).State = EntityState.Modified; _DBEntity.SaveChanges(); }