Beispiel #1
0
 static void SetCreated(IEntityPersister persister, object[] state, ICreateAuditable <T> u)
 {
     NHEventHelper.Set(persister, state, "CreatedAt", DateTime.Now);
     NHEventHelper.Set(persister, state, "CreatedBy", u.CreatedBy);
 }
Beispiel #2
0
 static void SetModified(IEntityPersister persister, object[] state, IModifyAuditable <T> u)
 {
     NHEventHelper.Set(persister, state, "ModifiedAt", DateTime.Now);
     NHEventHelper.Set(persister, state, "ModifiedBy", u.ModifiedBy);
 }