コード例 #1
0
        public ICollection <ProductBl> GetByStone(int count)
        {
            var result = _Repository.GetEntity <Product>().Include(j => j.JewerlyType).Include(s => s.Stones).Where(p => p.Stones.Count == count);

            return(MapTools.MapToProductCollection <Product, ProductBl>(result.ToList()));
        }
コード例 #2
0
        public ICollection <ProductBl> GetByType(int Id)
        {
            var result = _Repository.GetEntity <Product>().Where(i => i.JewerlyType_Id == Id).Include(j => j.JewerlyType).Include(s => s.Stones);

            return(MapTools.MapToProductCollection <Product, ProductBl>(result.ToList()));
        }