I’ve recently created a new web project using entity framework 4.3. I’m using database first design.
Entity Framework added this section to my web.config, which is giving some informational error messages. I’ve read somewhere that this code relates to code first design – do I need it – do I just remove it?
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlCeConnectionFactory, EntityFramework">
<parameters>
<parameter value="System.Data.SqlServerCe.4.0" />
</parameters>
</defaultConnectionFactory>
</entityFramework>
Thanks.
I am not 100% sure if it matters if you aren’t using CodeFirst (try removing it and see if it runs ok). However, if you are using CodeFirst and using SQLCE 4.0 as your main database then you need to keep it. See the docs: