Reputation: 33071
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.
Upvotes: 4
Views: 1733
Reputation: 126587
I wrote a detailed examination of the connection strings which explains the options for the metadata.
Upvotes: 2
Reputation: 9519
Here are the details about each piece from the connection string http://msdn.microsoft.com/en-us/library/cc716756.aspx
Upvotes: 2