private void SetChange(IStampedEntity entity, object[] state, IEntityPersister persister) { entity.LastUpdateUser = GetUserName(); SetState(persister, state, LastUpdateUser, entity.LastUpdateUser); entity.LastUpdateDate = DateTime.UtcNow; SetState(persister, state, LastUpdateDate, entity.LastUpdateDate); }
public void Update(IStampedEntity entity, object[] oldState, object[] state, IEntityPersister persister) { if (entity == null) return; SetChange(entity, state, persister); }
public void Update(IStampedEntity entity, object[] oldState, object[] state, IEntityPersister persister) { if (entity == null) { return; } SetChange(entity, state, persister); }
private void SetCreate(IStampedEntity entity, object[] state, IEntityPersister persister) { entity.CreatedBy = GetUserName(); SetState(persister, state, CREATED_BY, entity.CreatedBy); entity.CreatedTS = DateTime.Now; SetState(persister, state, CREATED_TS, entity.CreatedTS); }
public void Insert(IStampedEntity entity, object[] state, IEntityPersister persister) { if (entity == null) return; SetCreate(entity, state, persister); SetChange(entity, state, persister); }
public void Insert(IStampedEntity entity, object[] state, IEntityPersister persister) { if (entity == null) { return; } SetCreate(entity, state, persister); SetChange(entity, state, persister); }