I created a new MVC application and added an Entity Framework model generated from the NerdDinner database.
I looked at the connectionStrings section of my web.config and was confused at the connection string that it created:
<add name="NerdDinnerEntities" connectionString="metadata=res://*/Models.NerdDinner.csdl|res://*/Models.NerdDinner.ssdl|res://*/Models.NerdDinner.msl;provider=System.Data.SqlClient;provider connection string="Data Source=TINCTOM;Initial Catalog=NerdDinner;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
What exactly does each piece of the connection string do? I don’t really know much about the Entity Framework and was just trying to mess around with it to learn a bit more.
I wrote a detailed examination of the connection strings which explains the options for the metadata.