コード例 #1
0
        public async Task <List <TProperty> > GetListAsync <TProperty>(Guid userId) where TProperty : DkmsPropertyEntity
        {
            var list = await _dkmsRepository.GetListAsync <TProperty>(s => s.UserId == userId);

            return(list);
        }
コード例 #2
0
 public async Task <List <GoodsStockReasonEntity> > GetListAsync(Guid userId)
 {
     return(await _dkmsRepository.GetListAsync <GoodsStockReasonEntity>(s => s.UserId == userId));
 }
コード例 #3
0
 public async Task <List <GoodsStockEntity> > GetListAsync(Guid userId, IEnumerable <Guid> goodsIds)
 {
     return(await _dkmsRepository.GetListAsync <GoodsStockEntity>(s => s.UserId == userId && goodsIds.Contains(s.GoodsId)));
 }
コード例 #4
0
        public virtual async Task <List <TPropertyValueEntity> > GetListAsync <TPropertyValueEntity>(Expression <Func <TPropertyValueEntity, bool> > predicate) where TPropertyValueEntity : DkmsPropertyValueEntity
        {
            var list = await _dkmsRepository.GetListAsync(predicate);

            return(list);
        }