|
|
|
Help
|
|||
|---|---|---|---|
|
#18+
public interface IProductsRepository { IQueryable<Product> Products { get; } void SaveProduct(Product product); void DeleteProduct(Product product); IQueryable<Category> Caterogies { get; } IQueryable<Categories_Products> Categories_Productss { get; } } private IProductsRepository productsRepository; public ProductsController(IProductsRepository productsRepository) { this.productsRepository = productsRepository; } productsToShow = (productsRepository.Products.Where(x => ProID.Contains(x.ProductID)).Select(x => x)); Запрос содержит ссылки на элементы, определенные для различного контекста данных. Не пойму как провести отбор? Почему Where(x => ProID.Contains(x.ProductID)) неработает? а забыл IQueryable<int> ProID ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.10.2010, 12:45 |
|
||
|
|

start [/forum/topic.php?fid=17&fpage=51&tid=1351035]: |
0ms |
get settings: |
7ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
42ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
28ms |
get tp. blocked users: |
1ms |
| others: | 212ms |
| total: | 326ms |

| 0 / 0 |
