public void RegisterNew(IAggregateRoot entity, IUnitOfWorkRepository unitOfWorkRepository) { SessionFactory.GetCurrentSession().Save(entity); }
public void RegisterRemoved(IAggregateRoot entity, IUnitOfWorkRepository unitOfWorkRepository) { SessionFactory.GetCurrentSession().Delete(entity); }
public ISession GetSession() { return(SessionFactory.OpenSession()); }