the existing code is:
....
domainModel.EntityDataContext.Attach(entry);
....
domainModel.EntityDataContext.Commit();
I'm not allowed to edit the attach method and commit as it will create huge regression issues, but I'm wondering how can I obtain entry's id ?