UnitOfWorkDataDomain.cs 546 B

12345678910111213141516
  1. using Quadarax.Foundation.Core.Data.Interface.Domain;
  2. namespace Quadarax.Foundation.Core.Data.Domain
  3. {
  4. //[DiModule]
  5. //[DiImplementsOf(typeof(IUnitOfWork<IDomain>), LifeCycleTypeEnum.Scoped)]
  6. //[DiImplementsOf(typeof(IUnitOfWork<DataDomain>), LifeCycleTypeEnum.Scoped)]
  7. public class UnitOfWorkDataDomain : UnitOfWork<DataDomain>, IUnitOfWork<IDomain>
  8. {
  9. public UnitOfWorkDataDomain(IDomainContextResolver context) : base(context)
  10. {
  11. }
  12. IDomain IUnitOfWork<IDomain>.Context => Context;
  13. }
  14. }