Esempio n. 1
0
 public virtual void Add(TInterface entity)
 {
     Checks.Argument.IsNotNull(entity, "entity");
     LoggedActionFactory.BeforeEntityAdd(log, entity as TClass);
     Database.Insert(entity as TClass);
     LoggedActionFactory.AfterEntityAdd(log, entity as TClass);
 }
Esempio n. 2
0
 public virtual void Remove(TInterface entity)
 {
     Checks.Argument.IsNotNull(entity, "entity");
     LoggedActionFactory.BeforeEntityRemove(log, entity as TClass);
     Database.Delete(entity as TClass);
     LoggedActionFactory.AfterEntityRemove(log, entity as TClass);
 }