Время ожидания запроса 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-comparing-the-dates[/url]

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