public void Changed(UnitOfWork uow) { if (Counter + 1 != uow.Counter) throw new Exception("Wrong Unit of Work counter"); Counter = uow.Counter; Changed(); if (OnChanged != null) OnChanged(this, uow); }
void context_OnChanged(Context c, UnitOfWork uow) { System.Console.WriteLine(Serialization.Serialize(uow)); }
protected void DoUnitOfWork(UnitOfWork uow) { if (uow != null) uow.Do(context); }
public void BeforesChange(UnitOfWork uow) { if (OnBeforeChange != null) OnBeforeChange(this, uow); }