Preventing Entity Tracking4:19 with James Churchill
Let's look at a technique for using Entity Framework to retrieve a large number of records.
Using ADO.NET to Query for a Large Number of Records
In some situations, disabling entity tracking still won't give you the necessary performance. When that happens, you can fallback to using an ADO.NET DataReader. For information (including code examples) on how to do this, see this article on Microsoft's official docs:
You need to sign up for Treehouse in order to download course files.Sign up