|
|
|
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&gotonew=1&tid=1351035]: |
0ms |
get settings: |
7ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
158ms |
get topic data: |
9ms |
get first new msg: |
5ms |
get forum data: |
2ms |
get page messages: |
22ms |
get tp. blocked users: |
1ms |
| others: | 201ms |
| total: | 425ms |

| 0 / 0 |
