Dismissile
Dismissile

Reputation: 33071

EntityClient Provider - What exactly does it do?

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=&quot;Data Source=TINCTOM;Initial Catalog=NerdDinner;Integrated Security=True;MultipleActiveResultSets=True&quot;" 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

Answers (2)

Craig Stuntz
Craig Stuntz

Reputation: 126587

I wrote a detailed examination of the connection strings which explains the options for the metadata.

Upvotes: 2

Stefan P.
Stefan P.

Reputation: 9519

Here are the details about each piece from the connection string http://msdn.microsoft.com/en-us/library/cc716756.aspx

Upvotes: 2

Related Questions