Multiple UnitOfWorks, ISession and repositories
问题 Do you know a good example somewhere for this? What I would like is the following: using(IUnitOfWork uow = UnitOfWork.Start()) { repositoryA.Add(insanceOfA); repositoryB.Add(instanceOfB); uow.Commit(); } But this case is too ideal, because what I also want is multiple UnitOfWorks (per presenter in most cases, and this is not for a web app). In that case, how will repositories know which UnitOfWork to use if I don't give them that explicitly like repository.UnitOfWork = uow; My goal is to have