MVC3 Music Store Tutorial Connection String issue

前端 未结 3 1014
离开以前
离开以前 2021-01-16 04:32

I\'m working my way through the MVC Music Store Tutorial and am running into an issue when I try to connect to the database using the entity framework model. I\'ve tried a

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-16 05:08

    You generally need MultipleActiveResultSets=True with Entity Framework when you're using SQL Server editions other than Compact. Depending on what the error you are seeing is, that might be your problem. For more on connection string options, see this blog:

    http://blogs.msdn.com/b/aspnetue/archive/2012/08/14/sql-server-connection-strings-for-asp-net-web-applications.aspx

提交回复
热议问题