score:1
Accepted answer
You can set the DataContext CommandTimeout
Property
http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.commandtimeout.aspx
And out of curiosity, why do you have
var resultList = result.Skip((pageNumber - 1) * pageSize)
.Take(pageSize).ToList();
return new List<Stat>(resultList);
and not
List<Stat> resultList = result.Skip((pageNumber - 1) * pageSize)
.Take(pageSize).ToList();
return resultList ;
Source: stackoverflow.com
Related Articles
- IQueryable command timeout
- How to set Nhibernate LINQ Command Timeout using Session.Query
- Execute expression on another IQueryable source
- LINQ Source Code Available
- .NET 4 Code Contracts: "requires unproven: source != null"
- Unit testing code using IQueryable
- creating Linq to sqlite dbml from DbLinq source code
- Increase SQL Command Timeout when making call through LINQ Mapping
- Cannot build the Test project for LINQ IQueryable Toolkit (IQToolkit) - Code 9009
- source code for LINQ 101 samples
- LINQ where clause using Generic IQueryable source
- List or Array of String Contain specific word in Html Source Code
- IQueryable two tables from Code First Entity Framework
- c# Linq or code to extract groups from a single list of source data
- LinqDataSource: How to assign IQueryable value to where parameters in code
- ToPagedListAsync() - The provider for the source IQueryable doesn't implement IDbAsyncQueryProvider
- Entity Framework: There is already an open DataReader associated with this Command
- Convert string[] to int[] in one line of code using LINQ
- Using IQueryable with Linq
- Code equivalent to the 'let' keyword in chained LINQ extension method calls
- Value cannot be null. Parameter name: source
- What's the difference between IQueryable and IEnumerable
- Linq code to select one item
- C# - code to order by a property using the property name as a string
- How do I find the text within a div in the source of a web page using C#
- Roslyn failed to compile code
- How do I apply OrderBy on an IQueryable using a string column name within a generic extension method?
- Instantiate empty IQueryable for use with Linq to sql
- Entity-framework code is slow when using Include() many times
- The data source does not support server-side data paging
- Multiple where clauses in foreach statement c#
- Fuzzy Search on a Concatenated Full Name using NHibernate
- Insert data into multiple table using linq
- Linq to Sql Datacontext primary key not set
- How to return list of Stored Procedure in SQL Server and WebAPI2
- Cannot convert from IQueryable <decimal,Project1,Model> to IQueryable<Project1,Model>
- How to update list without using for loop in Entity Framework?
- MVC c# mapping to join string values ignoring NULL values
- Solr Facets: How to set Facet.Limit to (-1) unlimited in Sitecore.ContentSearch.Linq from code
- How to use the vb equivalent of ++ for an index property in a Linq query projecting a new type
- Linq Query fail to execute method
- Code Rewite for tuple and if else statements by using LINQ
- vb.net return only selected columns/fields from linq.IQueryable(of out t)
- Taking advantage of PLINQ with custom Enumerable Extensions
- List<T> Where T is custom object. Remove duplicates by property
- function returning object with max value
- C# Linq Where Date Between 2 Dates
- Reduce multiple consecutive equal characters from a string to just one
- Efficient Way to SQL Csv w/ > 255 Columns in C#?
- Sort a list of path in LINQ?