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);
 }
Exemplo n.º 2
0
     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);
 }
Exemplo n.º 4
0
     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);
     }
Exemplo n.º 5
0
     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);
 }