private static string GetQueryable(string queryable, IGenericUnitOfWork generalRepository, KendoDataRequest kendoDataRequest, out int total, bool hasWhereClause) { queryable = Filter(queryable, kendoDataRequest.Filter, kendoDataRequest.DataExtensions, hasWhereClause); total = generalRepository.SqlQuery <int>("select count(*) from(" + queryable + ") a").FirstOrDefault(); return(queryable); }
public DnaClientDomain( IDatabaseUnitOfWork database, IGenericUnitOfWork <UserDnaClient> userDnaDatabase) { Database = database; UserDnaDatabase = userDnaDatabase; }
public CalendarService( IGenericUnitOfWork genericUnitOfWork, ApplicationLogService applicationLogService, IDiObjectMapper mapper) { _genericUnitOfWork = genericUnitOfWork; _applicationLogService = applicationLogService; _mapper = mapper; }
public void Setup() { var mapperConfig = new MapperConfiguration(m => { m.AddProfile(new MappingProfiles()); }); IMapper mapper = mapperConfig.CreateMapper(); _uow = new GenericUnitOfWork(new KoopDbContext(), mapper, null); }
public ITService( IGenericUnitOfWork genericUnitOfWork, IDiObjectMapper mapper, ISetUpService setupService, IEmailComposer emailComposer ) { _genericUnitOfWork = genericUnitOfWork; _mapper = mapper; _setupService = setupService; _emailComposer = emailComposer; }
public PettyCashService( ISetUpService setupService, ISharedService sharedService, IEmailComposer emailComposer, IDiObjectMapper objectMapper, IGenericUnitOfWork genericUnitOfWork) { _setupService = setupService; _sharedService = sharedService; _emailComposer = emailComposer; _objectMapper = objectMapper; _genericUnitOfWork = genericUnitOfWork; }
public CITService( IGenericUnitOfWork genericUnitOfWork, IDiObjectMapper mapper, IEmailComposer emailComposer, ISharedService sharedService ) { _genericUnitOfWork = genericUnitOfWork; _emailComposer = emailComposer; _mapper = mapper; _sharedService = sharedService; }
public AocaService(IGenericUnitOfWork genericUnitOfWork, ISharedService sharedService, IListService listService, ISetUpService setupService, IEmailComposer emailComposer, IDiObjectMapper mapper) { _listService = listService; _sharedService = sharedService; _emailComposer = emailComposer; _setupService = setupService; _mapper = mapper; _genericUnitOfWork = genericUnitOfWork; }
public BOCAService(IGenericUnitOfWork genericUnitOfWork, ISharedService sharedService, IListService listService, ISetUpService setupService, IEmailComposer emailComposer, ApplicationLogService applicationLogService, IDiObjectMapper mapper) { _genericUnitOfWork = genericUnitOfWork; _sharedService = sharedService; _listService = listService; _setupService = setupService; _emailComposer = emailComposer; _applicationLogService = applicationLogService; _mapper = mapper; }
public static DataSourceResult ToDataSourceResult <T>(this IGenericUnitOfWork generalRepository, string queryable, KendoDataRequest kendoDataRequest, Sort initialsort, QueryType queryType = QueryType.None) { int total; if (queryType == QueryType.NeedToWrapBySelect) { queryable = $"select * from ({queryable}) wrapped"; } string filteredQuery = GetQueryable(queryable, generalRepository, kendoDataRequest, out total, queryType == QueryType.AlreadyHasWhereClause); queryable = Page(filteredQuery, kendoDataRequest.Take, kendoDataRequest.Skip, kendoDataRequest.Sort, initialsort, kendoDataRequest.DataExtensions); var data = generalRepository.SqlQuery <T>(queryable).ToList(); return(new DataSourceResult() { Data = data, Total = total }); }
// GET: Customer public ActionResult Index() { genericUnitOfWork = new GenericUnitOfWork <CustomerEntity>(); return(View(genericUnitOfWork.GetRepository().GetAllRecordsWithoutTracking())); }
public UserService(IGenericUnitOfWork <TwitterLikeDbContext> uow) { unitOfWork = uow; users = unitOfWork.GetRepository <User>(); }
public OrderController(IGenericUnitOfWork uow, IMapper mapper) { _uow = uow; _mapper = mapper; }
public GenericRepository(IGenericUnitOfWork <EthioProductEntities> unitOfWork) : this(unitOfWork.Context) { }
public HomeController(IGenericUnitOfWork uow, IHostingEnvironment hostEnvironment) { _uow = uow; _hostEnvironment = hostEnvironment; }
//private IRepository<tblProduct> repoProduct; //private IShoppingCart shoppingCart; public PaymentController(IGenericUnitOfWork <EthioProductEntities> _uow) { uow = _uow; }
public CooperatorController(IGenericUnitOfWork uow, IMapper mapper) { _uow = uow; _mapper = mapper; }
public AuthController(IGenericUnitOfWork genericUnitOfWork, ILogger <AuthController> logger) { _uow = genericUnitOfWork; _logger = logger; }
public ListService( IDiObjectMapper mapper, IGenericUnitOfWork genericUnitOfWork) { _mapper = mapper; _genericUnitOfWork = genericUnitOfWork; }
public ProductController(IGenericUnitOfWork uow, IMapper mapper) { _uow = uow; _mapper = mapper; }
public CategoryController(IGenericUnitOfWork uow, IMapper mapper) { _uow = uow; _mapper = mapper; }
public GenericRepository(IGenericUnitOfWork unitOfWork) { _unitOfWork = unitOfWork; }
public TestController(IGenericUnitOfWork genericUnitOfWork, IMyEmailSender emailSender) { _uow = genericUnitOfWork; _emailSender = emailSender; }
public UpdateProductCommandHandler(IProductRepositoryAsync productRepository, IGenericUnitOfWork unitOfWork) { _productRepository = productRepository; _unitOfWork = unitOfWork; }
public ApplicationLogService(IDiObjectMapper objectMapper, IGenericUnitOfWork genericUnitOfWork) { _objectMapper = objectMapper; _genericUnitOfWork = genericUnitOfWork; }
public ServiceProductCategory(IGenericUnitOfWork genericUnitOfWork) { _genericUnitOfWork = genericUnitOfWork; }
public ErrorLogService(IDiObjectMapper objectMapper, IGenericUnitOfWork genericUnitOfWork) { _objectMapper = objectMapper; _genericUnitOfWork = genericUnitOfWork; }
public EntityService(IGenericUnitOfWork unitOfWork, IGenericRepository <T> repository) { _unitOfWork = unitOfWork; _repository = repository; }
public ParttimerService(IDiObjectMapper objectMapper, IGenericUnitOfWork genericUnitOfWork, IEmailComposer emailComposer) { _objectMapper = objectMapper; _genericUnitOfWork = genericUnitOfWork; _emailComposer = emailComposer; }
public CreateProductCommandHandler(IProductRepositoryAsync productRepository, IGenericUnitOfWork unitOfWork, IMapper mapper) { _productRepository = productRepository; _unitOfWork = unitOfWork; _mapper = mapper; }