[Solution found!] 执行此操作时context.Entry(entity).State = EntityState.Modified;,您不仅将实体附加到DbContext,还将整个实体标记为脏的。
確定! 回上一頁