Starts in:
2 DAYS
7 HRS
35 MIN
30 SEC
Starts in:
2 D
7 H
35 M
30 S
Open Closed

EF core PUT endpoint is not working as expected. #6651


User avatar
0
ed_developer3 created

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)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    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

  • User Avatar
    0
    ed_developer3 created

    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

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    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

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06