예제 #1
0
 public void RegisterNew(IAggregateRoot entity, IUnitOfWorkRepository unitOfWorkRepository)
 {
     SessionFactory.GetCurrentSession().Save(entity);
 }
예제 #2
0
 public void RegisterRemoved(IAggregateRoot entity, IUnitOfWorkRepository unitOfWorkRepository)
 {
     SessionFactory.GetCurrentSession().Delete(entity);
 }
예제 #3
0
 public ISession GetSession()
 {
     return(SessionFactory.OpenSession());
 }