Error in update-database command in code first migration

后端 未结 10 1543
盖世英雄少女心
盖世英雄少女心 2020-12-15 05:01

I am working on Desktop application in WPF and creating SqlRepository with LocalDB to store data. I am using following tools

  • Visual Studio 20
10条回答
  •  佛祖请我去吃肉
    2020-12-15 05:37

    I was able to solve this by adding parameters to the update-database command:

    update-database -StartupProjectName MyApp.Web -ConnectionStringName MyAppConnectStringInWebConfig
    

提交回复
热议问题