I have a table in my Microsoft SQL server with about 11,450,112 rows, I’am tring to use this command:
contex.TableName.ToList();
The problem is becuase the table is so big, the VB2010 throws an “OutOfMemory” exception.
I was thinking maybe theres a command to seprarete the query in to pages or something like that.
Any ideas or any help would help me very much.
Thanks.
You can easily do paging with Entity Framework,
In the client side you need to implement some paging mechanism to pass the
pageandpageSizeparameters according to the users input.Here is a tutorial