Open Closed

The last inserted id in case of data type other than GUID not returning to app service #4795


User avatar
0
raju.thinnaluri@gmail.com created

Hi,

When the Modal primary key column with data type int or bigint (long) then after creating newly instead id not returning to the service. if it is GUID then we are getting the inserted ID

Here the ID always getting Zero.

But data inserting successfully. how we can get the last inserted id in case of data type other than GUID?

  • ABP Framework version: v5.3.4
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): No
  • Steps to reproduce the issue:" a table with int or long data type as identity column

5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please your entity and WorkOrderSubTaskManger code.

  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    hi

    Please your entity and WorkOrderSubTaskManger code.

    As you Requested, Manager Code

    Modal

    Create Dto

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try passing true to InsertAsync method?

    InsertAsync(workordersubTask, true);

  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    hi

    Can you try passing true to InsertAsync method?

    InsertAsync(workordersubTask, true);

    Hi,

    Thanks for your help. Now working. able to get the Id.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    good news.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11