This project is read-only.
1
Vote

New and Old Value reversed on Updates

description

Using the last source code (Jan 4 2012), when doing Updates, the New and Old value in auditedEntity.ModifiedProperties are reversed.

Inserts are audited correctly, I believe.

[EDIT]
he problem is on this line :
return table.GetModifiedMembers(entity).Select( mmi =>
                new ModifiedProperty((PropertyInfo)mmi.Member, mmi.CurrentValue, mmi.OriginalValue));
When the constructor is :
public ModifiedProperty(PropertyInfo property, object originalValue, object currentValue)
.

comments