Abp: What is the expected way to get an id after doing a TRepository.Insert()....

Created on 26 Aug 2019  路  1Comment  路  Source: abpframework/abp

Hi,

I see InsertAndGetId has been removed https://github.com/abpframework/abp/issues/54. What is the expected workflow now to get the identifier of a newly added record added via a repository call?

question

Most helpful comment

@natiki use InsertAsync with autoSave=true if your PK is not Guid. See https://github.com/abpframework/abp/commit/a4594137514c0f25406ca667405874631181d374

>All comments

@natiki use InsertAsync with autoSave=true if your PK is not Guid. See https://github.com/abpframework/abp/commit/a4594137514c0f25406ca667405874631181d374

Was this page helpful?
0 / 5 - 0 ratings