Тайм-аут запроса C# linq при сравнении датC#

Место общения программистов C#
Anonymous
Тайм-аут запроса C# linq при сравнении дат

Сообщение Anonymous »

У меня есть приведенный ниже код в одном из моих приложений. Запрос linq зависает на неопределенный срок.

Код: Выделить всё

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-compating-the-dates[/url]

Вернуться в «C#»