Код: Выделить всё
public virtual List GetTradeViewByDatesDataSourceAndCommodityId(DateTime fromDate, DateTime toDate, int commodityId, int originId, int dataSourceId)
{
var context = GetTradeEntities();
var theList = (from tradeView in context.TradeViews
where (tradeView.MonthStartDate >= fromDate)
&& (tradeView.MonthEndDate = fromDate)
&& (tradeView.MonthEndDate
Подробнее здесь: [url]https://stackoverflow.com/questions/79116062/c-sharp-linq-query-times-out-when-comparing-the-dates[/url]
Мобильная версия