IUnitOfWork.cs 358 B

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