Hi. Is there any possibility to get inserted id of a just inserted entity without querying database again?
```
public int Create(ItemGroupDto itemGroupDto)
{
var itemGroup = Mapper.Map<ItemGroupDto, vwItemGroup>(itemGroupDto);
_repositoryAsync.Insert(itemGroup);
_unitOfWorkAsync.SaveChanges();
return itemGroup.EntityID;
}
```
I need to get itemGroup.EntityID but its 0. Could you please help me to solve that problem?
Regards,
Oleksandr
```
public int Create(ItemGroupDto itemGroupDto)
{
var itemGroup = Mapper.Map<ItemGroupDto, vwItemGroup>(itemGroupDto);
_repositoryAsync.Insert(itemGroup);
_unitOfWorkAsync.SaveChanges();
return itemGroup.EntityID;
}
```
I need to get itemGroup.EntityID but its 0. Could you please help me to solve that problem?
Regards,
Oleksandr