1. 程式人生 > >關於EF Core對中間表的先刪除在增加錯誤

關於EF Core對中間表的先刪除在增加錯誤

nbsp hang 中間 操作 chan change ech ext 保存

  1. EF core 對中間表進行先增在刪除的操作時,先刪除,_dbContext.SaveChanges(),
  2. 在保存數據庫後,進行 增加操作
  3. 註意:刪除時需要保存在做其他操作

關於EF Core對中間表的先刪除在增加錯誤