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