Entity Framework Core 5: The different between saving use Add(oldItem) and db.Entry(oldItem).State = EntityState.Modified?

后端 未结 0 1993
太阳男子
太阳男子 2021-02-20 17:16

I am using Entity Framework Core 5.0.3 , .NET 5.0.103, ASP.NET Core 5 Blazor WebAssebmly . I have

        // Cập nhật
        [HttpPut("{id}")]
                 


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题