ABP Framework version: v7.4.0 UI Type: Angular Database System: EF Core (SQL Server)
We are trying to update a resource using Put http method endpoint. Suppose the resource behind the PUT endpoint is having 15 fields and we send 5 fields to be updated from front end then what it is doing is that it is updating those 5 fields only and making other fields to null. It should not touch remaining 10 fields as of now its making all of them to default or null. Can you let me know how to change or modify it if it can be changed.
Thanks.
3 Answer(s)
-
0
Hello,
I think you need to check your object mapping once something is missing there. otherwise please send some code snippet or share steps to reproduce the issue.
thanks
-
0
ok i have checked mapping its correct.
Also how to avoid this error by abp api "The data you have submitted has already changed by another user/client. Please discard the changes you've done and try from the beginning" Thanks
-
0
Hello,
please check this https://community.abp.io/posts/handle-concurrency-with-ef-core-in-an-abp-framework-project-with-asp.net-core-mvc-jlkc3w8f also check this https://docs.abp.io/en/abp/latest/Concurrency-Check
thanks