LINQ to SQL DataContext Identity Mapping
Each LINQ to SQL datacontext we instantiate holds its own identity map (based on Martin Fowlers Identity Map Pattern). This is basically a dictionary with identity keys pointing to entities in memory previously retrieved from the database – within the scope of the datacontext, that is. More…