在学习EF code First的小案例的时候,遇见了这个异常
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="EFDbContext" connectionString="Server=.;Database=MiniProfilerDemo;uid=sa;pwd=tfc063318;" providerName="System.Data.SqlClient" />
</connectionStrings>
解决方案:
<connectionStrings>标签必须在<configSections>之后