I just finished building a C# WinForms application, and after publishing it using Microsoft Visual Studio Installer projects, I have realized that the database has not been added to the application...
How can I attach the database along with the .EXE file? I have selected the needed prerequisites (.NET and SQL Server Express).
I am using Entity Framework 6 (EF6) and my database has a username and password (SQL Server authentication).
I have tried to include the .mdf file in the project, but no results.
I have also tried to include SQL(localDB), but it throws an exception: make sure to include entity framework connection string...

Moussa Arbid33 reputationPosted Nov 20, 2019, 2:10 AM EST
Moussa Arbid33 reputationPosted Nov 21, 2019, 3:13 AM EST
Moussa Arbid33 reputationPosted Nov 21, 2019, 4:02 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 19, 2019, 10:41 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 20, 2019, 7:06 AM EST