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