|
|
|
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&msg=36911843&tid=1351035]: |
0ms |
get settings: |
9ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
184ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
| others: | 239ms |
| total: | 508ms |

| 0 / 0 |
