I am having a problem saving an entity (NEW, not updating). The entity DOES Save, but it comes back outofsync. My statement is this:
_empTemp = (EmployeeTempEntity)Common.server.SaveEntity(_empTemp, true);
So even with the refetch flag, it still comes back out of sync and I cannot retrieve the New PK Id from _empTemp.
Maybe I need to fetch the entity before I save it with:
adapter.FetchEntity(_empTemp);
But I do not know how to instantiate 'adapter'.
with "using (DataAccessAdapter adapter = new DataAccessAdapter())"
I am getting the error stating:
"Am I missing a directive or assembly reference"
I AM:
using SD.LLBLGen.Pro.ORMSupportClasses;
Can anyone help?
Thanks,
Dan