|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Retrieve Information As Read-Only (LINQ to SQL)
When you do not intend to change the data, you can increase the performance of queries by seeking read-only results.
You implement read-only processing by setting ObjectTrackingEnabled to false.
The following code retrieves a read-only collection of employee hire dates.