On 3/21/2012 1:47 PM, John Sun wrote:
> I am upgrading to EF4.3.1, and it seems that it creates a new section
> called entityframework in web.config. Is this the new place that I
> should put my connection string, not the connection string sections
> which it used to be in?
>
> <entityFramework>
> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework">
> <parameters>
> <parameter value="Data Source=(localdb)\v11.0; Integrated Security=True; MultipleActiveResultSets=True" />
> </parameters>
> </defaultConnectionFactory>
> </entityFramework>
>
The connectionstring should be in the root web.config. There should a
tag named <connectionstring> </connectionstring> where connectionstring
information is kept.