Exemplo n.º 1
0
 /// <summary>
 /// Constructor de la clase
 /// </summary>
 /// <param name="repo">Repositorio de base de datos de la entidad a operar, por ejemplo producto</param>
 /// <param name="search">repositorio de base de datos de busqueda bajo el modelo de entitySearch</param>
 /// <param name="commonDb">operaciones de conversión de IQueriable a listas</param>
 /// <param name="validator">Validador de entidades input</param>
 public MainOperation(IMainGenericDb <T> repo, IAgroSearch <T_GEO> search, IValidatorAttributes <T_INPUT> validator)
 {
     this.repo         = repo;
     this.search       = search;
     this.valida       = validator;
     this.existElement = validator.GetExistElement();
 }
 public NotificationEventOperations(IMainGenericDb <NotificationEvent> repo, IAgroSearch <T> search, ICommonAgroQueries commonQueries, IEmail email, IUploadImage uploadImage, IWeatherApi weather, ICommonDbOperations <NotificationEvent> commonDb, IValidatorAttributes <NotificationEventInput> validator) : base(repo, search, commonDb, validator)
 {
     this.commonQueries = commonQueries;
     this.email         = email;
     this.uploadImage   = uploadImage;
     this.weather       = weather;
 }
 public MainOperation(IMainGenericDb <T> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <T> commonDb, IValidator validator)
 {
     this.repo         = repo;
     this.existElement = existElement;
     this.search       = search;
     this.commonDb     = commonDb;
     this.validator    = validator;
 }
Exemplo n.º 4
0
 public AgroManager(AgroDbArguments arguments, IEmail email, IUploadImage uploadImage, IWeatherApi weatherApi, IAgroSearch searchServiceInstance, string ObjectIdAAD, bool _isBatch)
 {
     Arguments              = arguments;
     _email                 = email;
     _uploadImage           = uploadImage;
     _weatherApi            = weatherApi;
     _searchServiceInstance = searchServiceInstance;
     UserId                 = CommonQueries.GetUserIdFromAAD(ObjectIdAAD).Result;
     isBatch                = _isBatch;
 }
Exemplo n.º 5
0
 public AgroManager(IDbAgroConnect dbConnect, IEmail email, IUploadImage uploadImage, IWeatherApi weatherApi, IAgroSearch <T> searchServiceInstance, string ObjectIdAAD)
 {
     this.dbConnect = dbConnect;
     _email         = email;
     _uploadImage   = uploadImage;
     _weatherApi    = weatherApi;
     Search         = searchServiceInstance;
     if (!string.IsNullOrWhiteSpace(ObjectIdAAD))
     {
         UserId = CommonQueries.GetUserIdFromAAD(ObjectIdAAD).Result;
     }
 }
Exemplo n.º 6
0
 public CostCenterOperations(IMainGenericDb <CostCenter> repo, IAgroSearch <T> search, ICommonAgroQueries queries, IValidatorAttributes <CostCenterInput> validator) : base(repo, search, validator)
 {
     Queries = queries;
 }
 public WarehouseDocumentOperations(IDbExistsElements existsElement, IMainGenericDb <WarehouseDocument> repo, IAgroSearch <T> search, ICommonAgroQueries queries, IValidatorAttributes <WarehouseDocumentInput> validator) : base(repo, search, validator)
 {
     Queries = queries;
 }
Exemplo n.º 8
0
 public UserOperations(IMainGenericDb <UserApplicator> repo, IAgroSearch <T> search, IGraphApi graphApi, ICommonDbOperations <UserApplicator> commonDb, IValidatorAttributes <UserApplicatorInput> validator) : base(repo, search, commonDb, validator)
 {
     this.graphApi = graphApi;
 }
 public ExecutionOrderOperations(IMainGenericDb <ExecutionOrder> repo, IAgroSearch <T> search, ICommonAgroQueries commonQueries, IValidatorAttributes <ExecutionOrderInput> validator) : base(repo, search, validator)
 {
     this.commonQueries = commonQueries;
 }
Exemplo n.º 10
0
 public DosesOperations(IDbExistsElements existsElement, IMainGenericDb <Dose> repo, IAgroSearch <T> search, ICommonDbOperations <Dose> commonDb, ICommonAgroQueries queries, IValidatorAttributes <DosesInput> validator) : base(repo, search, commonDb, validator)
 {
     this.existsElement = existsElement;
     Queries            = queries;
 }
 public CommentOperation(IMainGenericDb <Comment> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <Comment> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
 }
 public UserActivityOperations(IMainGenericDb <UserActivity> repo, IAgroSearch <T> search, ICommonDbOperations <UserActivity> commonDb, string userId, IValidatorAttributes <UserActivityInput> validator) : base(repo, search, commonDb, validator)
 {
     UserId = userId;
 }
Exemplo n.º 13
0
 public PreOrdersOperations(IMainGenericDb <PreOrder> repo, IExistElement existElement, IAgroSearch search, ICommonQueries commonQueries, ICommonDbOperations <PreOrder> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
     this.commonQueries = commonQueries;
 }
Exemplo n.º 14
0
 public SeasonOperations(IMainGenericDb <Season> repo, IAgroSearch <T> search, ICommonAgroQueries queries, IValidatorAttributes <SeasonInput> validator) : base(repo, search, validator)
 {
     Queries = queries;
 }
Exemplo n.º 15
0
 public CertifiedEntityOperations(IMainGenericDb <CertifiedEntity> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <CertifiedEntity> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
 }
 public RootstockOperations(IMainGenericDb <Rootstock> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <Rootstock> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
 }
Exemplo n.º 17
0
 public OrderFolderOperations(IMainGenericDb <OrderFolder> repo, IAgroSearch <T> search, ICommonAgroQueries Queries, IValidatorAttributes <OrderFolderInput> validator) : base(repo, search, validator)
 {
     this.Queries = Queries;
 }
 public BarrackOperations(IMainGenericDb <Barrack> repo, IAgroSearch <T> search, ICommonAgroQueries commonQueries, ICommonDbOperations <Barrack> commonDb, IValidatorAttributes <BarrackInput> validator) : base(repo, search, commonDb, validator)
 {
     this.commonQueries = commonQueries;
 }
 public SeasonOperations(IMainGenericDb <Season> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <Season> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
 }
 public NebulizerOperations(IMainGenericDb <Nebulizer> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <Nebulizer> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
 }
Exemplo n.º 21
0
 public ApplicationOrderOperations(IMainGenericDb <ApplicationOrder> repo, IAgroSearch <T> search, ICommonAgroQueries commonQueries, IValidatorAttributes <ApplicationOrderInput> validator) : base(repo, search, validator)
 {
 }
 public PlotLandOperations(IMainGenericDb <PlotLand> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <PlotLand> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
 }
 public BusinessNameOperations(IMainGenericDb <BusinessName> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <BusinessName> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
 }
 public UserActivityOperations(IMainGenericDb <UserActivity> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <UserActivity> commonDb, string userId, IValidator validator) : base(repo, existElement, search, commonDb, validator)
 {
     UserId = userId;
 }
 public ExecutionOrderStatusOperations(IMainGenericDb <ExecutionOrderStatus> repo, IAgroSearch <T> search, IValidatorAttributes <ExecutionOrderStatusInput> validator) : base(repo, search, validator)
 {
 }
Exemplo n.º 26
0
 public ExecutionOrderStatusOperations(IMainGenericDb <ExecutionOrderStatus> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <ExecutionOrderStatus> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
 }
Exemplo n.º 27
0
 public PreOrdersOperations(IMainGenericDb <PreOrder> repo, IAgroSearch <T> search, ICommonAgroQueries commonQueries, ICommonDbOperations <PreOrder> commonDb, IValidatorAttributes <PreOrderInput> validator) : base(repo, search, commonDb, validator)
 {
     this.commonQueries = commonQueries;
 }
 public ProductOperations(IMainGenericDb <Product> repo, IExistElement existElement, IAgroSearch search, IGenericOperation <Dose, DosesInput> dosesOperation, ICommonDbOperations <Product> commonDb, ICommonQueries queries, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
     this.dosesOperation = dosesOperation;
     this.queries        = queries;
 }
Exemplo n.º 29
0
 public IngredientCategoryOperations(IMainGenericDb <IngredientCategory> repo, IExistElement existElement, IAgroSearch search, ICommonDbOperations <IngredientCategory> commonDb, IValidator validators) : base(repo, existElement, search, commonDb, validators)
 {
 }
Exemplo n.º 30
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="repo">repositorio de base de datos de productos</param>
 /// <param name="search">operaciones en base de datos de busqueda basadas en entitySearch</param>
 /// <param name="dosesOperation">Operaciones de dosis</param>
 /// <param name="commonDb">convierte IQueryable en listas</param>
 /// <param name="queries">consultas a agro</param>
 /// <param name="validator">Validador de elementos</param>
 public ProductOperations(IMainGenericDb <Product> repo, IAgroSearch <T> search, IGenericOperation <Dose, DosesInput> dosesOperation, ICommonDbOperations <Product> commonDb, ICommonAgroQueries queries, IValidatorAttributes <ProductInput> validator) : base(repo, search, commonDb, validator)
 {
     this.dosesOperation = dosesOperation;
     this.queries        = queries;
 }