//dbContext.Entry(entity).State = EntityState.Modified; // 此行不需寫,因為它會讓DB修改所有欄位值,而非指定的欄位,這也是一個隱藏Bug地雷
確定! 回上一頁