IUnitOfWork.cs 799 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. namespace Abp.Domain.Uow
  3. {
  4. /// <summary>
  5. /// Defines a unit of work.
  6. /// This interface is internally used by ABP.
  7. /// Use <see cref="IUnitOfWorkManager.Begin()"/> to start a new unit of work.
  8. /// </summary>
  9. public interface IUnitOfWork : IActiveUnitOfWork, IUnitOfWorkCompleteHandle
  10. {
  11. /// <summary>
  12. /// Unique id of this UOW.
  13. /// </summary>
  14. string Id { get; }
  15. /// <summary>
  16. /// Reference to the outer UOW if exists.
  17. /// </summary>
  18. IUnitOfWork Outer { get; set; }
  19. /// <summary>
  20. /// Begins the unit of work with given options.
  21. /// </summary>
  22. /// <param name="options">Unit of work options</param>
  23. void Begin(UnitOfWorkOptions options);
  24. }
  25. }