public IQueryable <ProductCategoryMap> GetProductCategoryMap() { List <ProductCategoryMap> result = new List <ProductCategoryMap>(); for (int i = 1; i < 101; i++) { for (int x = 10; x < 15; x++) { ProductCategoryMap map = new ProductCategoryMap(); map.ProductID = i; map.CategoryID = x; result.Add(map); } } return(result.AsQueryable()); }
public IQueryable<ProductCategoryMap> GetProductCategoryMap() { List<ProductCategoryMap> result = new List<ProductCategoryMap>(); for (int i = 1; i < 101; i++) { for (int x = 10; x < 15; x++) { ProductCategoryMap map = new ProductCategoryMap(); map.ProductID = i; map.CategoryID = x; result.Add(map); } } return result.AsQueryable(); }