public QueryDescriptionToSql_Grouping(DBInitializer init) { repository = init.Repository; provider = new ODataQueryProvider(); }
public StockService(ICRUDRepository <Product> productRepository, MNBService mnbService) { this.productRepository = productRepository; this.mnbService = mnbService; }
public abstract void UpdateList <D>(ICRUDRepository repo, MappingContext context, bool full, IEnumerable <D> oldValues, IEnumerable <D> newValues);
public TransactionViewModelManager() { _transactionManager = new TransactionManager(); }
public async Task SaveChanges(ICRUDRepository repo) { await repo.SaveChanges(); }
public void UpdateKeys(ICRUDRepository repo) { repo.UpdateKeys(); }
public SuperHeroService(string token) { _repo = new SuperHeroRepository_api(token); }
public async Task <DataPage <D> > GetPage <D>(ICRUDRepository repo, Expression <Func <D, bool> > filter, Func <IQueryable <D>, IOrderedQueryable <D> > sorting, int page, int itemsPerPage, Func <IQueryable <D>, IQueryable <D> > grouping = null) { return(await repo.GetPage <D>(filter, sorting, page, itemsPerPage, grouping)); }
public RecursiveCopier(DBInitializerAdvanced init) { repository = init.Repository; context = init.Context; }
public CertificateController(ICRUDRepository repo) { _repo = repo; }
/// <summary> /// Creates an <see cref="AsyncObservableCollectionView{T}"/> and binds the repository changes to the collection /// </summary> public static async Task <AsyncObservableCollectionView <T> > ToAsyncObservableCollectionView <T, TKey>(this ICRUDRepository <T, TKey> repo, FilterHandler <T> filter) where T : IUniqueObject <TKey> { var items = await repo.GetItems(); var collection = AsyncObservableCollectionView <T> .Create(filter, items); collection.BindToRepositoryChanges(repo); return(collection); }
public HistoryController(ICRUDRepository repo) { _repo = repo; }
/// <summary> /// Updates the collection base on the operation type /// </summary> public static void BindToRepositoryChanges <T, TKey>(this IList <T> collection, ICRUDRepository <T, TKey> repo, Func <T, bool> predicate) where T : IUniqueObject <TKey> { repo.ItemsChanged += (s, e) => { if (predicate(e.Item)) { collection.Update(e); } }; }
/// <summary> /// Updates the collection base on the operation type /// </summary> public static void BindToRepositoryChanges <T, TKey>(this IList <T> collection, ICRUDRepository <T, TKey> repo) where T : IUniqueObject <TKey> { repo.ItemsChanged += collection.Update; }
public DefaultWebQueryRepository(ICRUDRepository sourceRepository) { SourceRepository = sourceRepository; }
public abstract Task <D> GetById <D, K>(ICRUDRepository repo, MappingContext context, K key);
public HomeController(ICRUDRepository <Post> postCrudRepository, IPostRepository postRepository, ICRUDRepository <User> userCrudRepository) { this.postCrudRepository = postCrudRepository; this.postRepository = postRepository; this.userCrudRepository = userCrudRepository; }
public async Task <DataPage <T1> > GetPageExtended <T1, T2>(ICRUDRepository repo, Expression <Func <T1, bool> > filter, Func <IQueryable <T2>, IOrderedQueryable <T2> > sorting, int page, int itemsPerPage, Func <IQueryable <T1>, IQueryable <T2> > grouping = null) where T2 : T1 { return (await repo.GetPageExtended <T1, T2>(filter, sorting, page, itemsPerPage, grouping)); }
protected CRUDManager(IUnitOfWork unitOfWork, ICRUDRepository <TEntity, TKey> repository, IMapper mapper) : base(unitOfWork, repository, mapper) { _unitOfWork = unitOfWork ?? throw new ArgumentNullException(); _repository = repository ?? throw new ArgumentNullException(); _mapper = mapper ?? throw new ArgumentNullException(); }
public abstract void Update <D>(ICRUDRepository repo, MappingContext context, bool full, params D[] viewModel);
public StudentLoggerRepository(ICRUDRepository <T> decorated) { _decorated = decorated; }
public virtual async Task <DataPage <D> > ExecuteQuery <D, D1>(ICRUDRepository repo, MappingContext context, object query) where D1 : D { return(null); }
internal BaseCRUDService(ICRUDRepository <T> repository) => Repository = repository;
public MinisterialEffectController(IMinisterialEffectRepository repository, IMapper mapper, CreateMinisterialEffectUseCase createEffect, UpdateMinisterialEffectUseCase updateEffect, ICRUDRepository crudRepository) { _repository = repository; _mapper = mapper; _createEffect = createEffect; _updateEffect = updateEffect; _crudRepository = crudRepository; }
public Func <object, object> GetGetKey(ICRUDRepository repo) => repo.GetKey;
public CreateMinisterialEffectUseCase(ICRUDRepository crudRepository, IMapper mapper) { _crudRepository = crudRepository; _mapper = mapper; }
public abstract void Add <S>(ICRUDRepository repo, MappingContext context, bool full, params S[] viewModel);
public SubjectController(ICRUDRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }
public void Delete <K>(ICRUDRepository repo, params K[] key) { repo.Delete <K>(key); }
public AccountController(IAuthRepository repo, IConfiguration config, IMapper mapper, ICRUDRepository repository) { _repository = repository; _mapper = mapper; _config = config; _repo = repo; }
public static ICRUDRepository<User> GetUserRepository() { if(UserRepo == null) { UserRepo = new UserRepository(); } return UserRepo; }