#pragma warning disable CS3001 // Argument type is not CLS-compliant
        public IdBaseApiControllerBase(IDalBase <TDto, TId> dal, IMapper mapper, IContractValidator <TContract> contractValidator)
#pragma warning restore CS3001 // Argument type is not CLS-compliant
        {
            Dal               = dal;
            Mapper            = mapper;
            ContractValidator = contractValidator;
        }
Ejemplo n.º 2
0
        public static T Create <T>(IDalBase dalBase = null) where T : IDalBase
        {
            T dal = MainCfg.ServiceProvider.GetService <T>();

            if (dal == null)
            {
                throw new DALImplementationNotFoundException(typeof(T));
            }

            if (dalBase != null)
            {
                dal.SetContext(dalBase.GetContext());
            }

            return(dal);
        }
 public DateRangeEffectiveContractObjectsController(IDalBase <DateRangeEffectiveDtoObject, int> dal, IMapper mapper, IContractValidator <DateRangeEffectiveContractObject> contractValidator) : base(dal, mapper, contractValidator)
 {
     CreatedRouteName = StaticTestValues.GetDateRangeEffectiveContractObjectRouteName;
     ControllerName   = StaticTestValues.ControllerName;
 }
Ejemplo n.º 4
0
Archivo: Dal.cs Proyecto: nistec/MQueue
 public Dal(IDalBase dalBase)
     : base(dalBase)
 {
 }