This project is read-only.
1
Vote

EntityTableKey = 0 on Inserts

description

I have implemented DoddleAudit and it seems to be working well - except that on Inserts, EntityTableKey is set to 0, even after the final call to UpdateKeys. When the following executes in UpdateKeys: object pk = AuditDefinition.PkSelector.Compile().DynamicInvoke(Entity); pk is set to 0. I verified that just before executing this statement, the table that is being audited has a valid value for the primary key (e.g. 340).

On Update actions, the primary key is populated correctly, so that is a good indication.

Any ideas on what is going on here with Inserts?
  • Tim

comments