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
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    hi

    Please your entity and WorkOrderSubTaskManger code.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    hi

    Please your entity and WorkOrderSubTaskManger code.

    As you Requested, Manager Code

    Modal

    Create Dto

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try passing true to InsertAsync method?

    InsertAsync(workordersubTask, true);

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    good news.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on November 02, 2026, 06:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.