IUnitOfWork.cs 415 B

123456789101112131415
  1. using System;
  2. namespace Quadarax.Foundation.Core.Data.Interface.Domain
  3. {
  4. public interface IUnitOfWork<TDomainContext> : IDisposable where TDomainContext : IDomain
  5. {
  6. Guid Stamp { get; }
  7. int CtxHash { get; }
  8. TDomainContext Context { get; }
  9. void Commit();
  10. IUnitOfWork<TCustomDomainContext> As<TCustomDomainContext>() where TCustomDomainContext : IDomain;
  11. }
  12. }