2 context.SaveChanges();. context.Entity(entity).State = EntityState.Modified; 這句代碼不僅會將entity attaching到當前的context中, ...
確定! 回上一頁