Visual Studio 2012 introduced LocalDb - special edition of SQL Express for developers.
Problem that I run into when trying to create database was that by default, web.config had SQLExpress datasource specified, not LocalDb.
After searching and finding a great blog - OdeToCode, turned out that I had to change this section:
<entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> <parameters> <parameter value="v11.0" /> </parameters> </defaultConnectionFactory> </entityFramework>
I did change defaultConnectionFactory, but it didn't work, giving me error about not recognizing LocalDbConnectionFactory etc.
Additional parameter has to be added and to be v11.0 for this to work.
No comments:
Post a Comment