public IUnitOfWork Begin(UnitOfWorkOptions options) { var outerUow = _currentUnitOfWorkProvider.Current; if (outerUow != null) { //((UnitOfWorkBase)outerUow).Options = options; //var innerunitofwork = new InnerUnitOfWork(options); //innerunitofwork.Outer = outerUow; //innerunitofwork.Begin(options); //return innerunitofwork; return(new InnerUnitOfWork(options)); } var uow = EngineContext.Current.Resolve <IUnitOfWork>(); uow.Begin(options); _currentUnitOfWorkProvider.Current = uow; return(uow); }
public new void Begin(UnitOfWorkOptions options) { Options = options; IsBeginCalledBefore = true; BeginUow(); }
public override void Complete(UnitOfWorkOptions options) { }
public InnerUnitOfWork(UnitOfWorkOptions options) { Options = options; }
public abstract void Complete(UnitOfWorkOptions options);
public void Begin(UnitOfWorkOptions options) { Options = options; PreventMultipleBegin(); BeginUow(); }