How to transfer ASP.NET MVC Database from LocalDb to SQL Server?

前端 未结 9 1319
小鲜肉
小鲜肉 2020-12-12 17:20

I created a new ASP.NET MVC 5 project in Visual Studio 2013 (Express for Web) and by default, the project uses LocalDb as its database, but how do you transfer or mi

9条回答
  •  有刺的猬
    2020-12-12 17:31

    Change the connectionString in your web.config

      
        
      
    

    to your own database connectionString, for example :

      
        
      
    

提交回复
热议问题