DynamicUpdate and OnPreUpdate not udates

Description

Hi,

if you set DynamicUpdate on and define a AuditEventListener like:

public bool OnPreUpdate(PreUpdateEvent preUpdateEvent)
{
var baseEntity = preUpdateEvent.Entity as BaseEntity;
if (baseEntity != null)
{
// Update
baseEntity.ModifiedByUser = this.GetCurrentUserName();
baseEntity.ModificationTime = DateTime.UtcNow;

// Persistent
SetState(preUpdateEvent.Persister, preUpdateEvent.State, DatabaseConfiguration.PropertyNameModificationTime, baseEntity.ModificationTime);
SetState(preUpdateEvent.Persister, preUpdateEvent.State, DatabaseConfiguration.PropertyNameModifiedByUser, baseEntity.ModifiedByUser);
}

return false;
}

the update does not affect that columns which are changed in the OnPreUpdate method
but if you turn it off, all is fine

Environment

None

Assignee

Unassigned

Reporter

Kai Cissarek

Components

Affects versions

Priority

Major
Configure