using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CY_DocumentSynchroWCFService { /// /// 表示所有集成于该接口的类型都是Unit Of Work的一种实现。 /// public interface IUnitOfWork { void RegisterAmended(IAggregateRoot entity, ICommonDAL unitofWorkRepository); void RegisterNew(IAggregateRoot entity, ICommonDAL unitofWorkRepository); void RegisterRemoved(IAggregateRoot entity, ICommonDAL unitofWorkRepository); bool Commit(); } }