Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I just finished building a C# WinForm Application, and after publishing it using Microsoft Visual Studio Installer Projects, I have realized that the database has not been added to the Application, so how can I attach the database along with the .EXE file, I have selected the needed prerequisites (.NET and SQL Express).
I am using Entity Framework 6 (EF6) and my database has a username and password (SQL Server Authentication).

What I have tried:

I have tried to include the .mdf file to the project, but no results.
Posted
Updated 17-Nov-19 1:46am

1 solution

 
Share this answer
 
v2
Comments
Moosa Arbeed 19-Nov-19 9:19am    
I have tried both solutions before submitting my question, but no results.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900