Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Identity key problems #15

Open
marvealmar opened this issue Aug 23, 2010 · 1 comment
Open

Identity key problems #15

marvealmar opened this issue Aug 23, 2010 · 1 comment

Comments

@marvealmar
Copy link

I have problems with identiy keys, It will not update until I commit the scope, this is a problem because i need the identity to fill other entities.

@dplaskon
Copy link

I've run into the same issue, you can call flush on the current unit of work to get around this, eg...

// inside unit of work scope

entityRepository.Save(entity);
UnitOfWorkManager.CurrentUnitOfWork.Flush();
// can now use entity.Id

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants