Пример #1
0
 public Handler(
     IMediator mediator,
     IBookWriteRepository bookWriteRepository,
     IEntityUnitOfWork entityUnitOfWork)
 {
     _mediator            = mediator;
     _bookWriteRepository = bookWriteRepository;
     _entityUnitOfWork    = entityUnitOfWork;
 }
Пример #2
0
        ///// <summary>
        ///// 在执行查询时,默认加载的关联属性的名称的集合,参考Entity的Include机制
        ///// </summary>
        //protected virtual IEnumerable<string> Paths
        //{
        //    get
        //    {
        //        return null;
        //    }
        //}

        #endregion

        #region Constructor

        public Repository(IEntityUnitOfWork unitOfWork)
        {
            if (unitOfWork == null)
            {
                throw new ArgumentNullException("unitOfWork");
            }

            _unitOfWork = unitOfWork;
        }
 public UserRoleRelationService(IEntityUnitOfWork unitOfWork)
 {
     UnitOfWork = unitOfWork;
 }
Пример #4
0
 public LogicUnitOfWork(IEntityUnitOfWork EntityUnitOfWork)
 {
     this.EntityUnitOfWork = EntityUnitOfWork;
 }
Пример #5
0
 public Repositorio(IEntityUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
     Tabla       = unitOfWork.ObtenerDbSet <TEntidad>();
 }
Пример #6
0
 public PostService(IEntityUnitOfWork EntityUnitOfWork)
 {
     this.EntityUnitOfWork = EntityUnitOfWork;
 }
Пример #7
0
 public CommentService(IEntityUnitOfWork EntityUnitOfWork)
 {
     this.EntityUnitOfWork = EntityUnitOfWork;
 }