I am working on Desktop application in WPF and creating SqlRepository with LocalDB to store data. I am using following tools
I was able to solve this by adding parameters to the update-database command:
update-database -StartupProjectName MyApp.Web -ConnectionStringName MyAppConnectStringInWebConfig