Search code examples
visual-studio-2012entity-framework-5sql-server-express

EF 5 Code First with SQL Server Express 2012 and Visual Studio 2012


I just cannot get this to work. I looked at all other related threads, and none of them work for me. Here is my connection string at the moment:

<add name='UniContext' connectionString='Server=.\SQLEXPRESS;Database=ContosoUni;Integrated Security=SSPI;User Instance=true' providerName='System.Data.EntityClient'/>

The error I get is:

enter image description here


Solution

  • Try to change provider name from System.Data.EntityClient to System.Data.SqlClient