public Handler( IMediator mediator, IBookWriteRepository bookWriteRepository, IEntityUnitOfWork entityUnitOfWork) { _mediator = mediator; _bookWriteRepository = bookWriteRepository; _entityUnitOfWork = entityUnitOfWork; }
///// <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; }
public LogicUnitOfWork(IEntityUnitOfWork EntityUnitOfWork) { this.EntityUnitOfWork = EntityUnitOfWork; }
public Repositorio(IEntityUnitOfWork unitOfWork) { _unitOfWork = unitOfWork; Tabla = unitOfWork.ObtenerDbSet <TEntidad>(); }
public PostService(IEntityUnitOfWork EntityUnitOfWork) { this.EntityUnitOfWork = EntityUnitOfWork; }
public CommentService(IEntityUnitOfWork EntityUnitOfWork) { this.EntityUnitOfWork = EntityUnitOfWork; }