When talking about Entity Framework its important to understand the operations happening,
Loading metadata
Happens only once in each application domain. Model and mapping metadata used by EF is loaded into MetadataWorkspace.
Opening the database connection
EF opens and closes database connection as needed.
Generating views
This is usually a costly operation
Preparing the query
Executing the query
Loading and validating types
Tracking
Materializing the objects
Loading metadata
Happens only once in each application domain. Model and mapping metadata used by EF is loaded into MetadataWorkspace.
Opening the database connection
EF opens and closes database connection as needed.
Generating views
This is usually a costly operation
Preparing the query
Executing the query
Loading and validating types
Tracking
Materializing the objects