If you want to keep your database safe you should create a web service for getting and saving data from the database. Have your windows application call the web service.
I would look at using dotfuscator if you want to protect your source code.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
People are installing my app on their computers. I should hide the table structure and connection string information for security.
I do this with ConfuserEx: https://www.codeproject.com/Articles/1139773/Protect-Your-Source-Code-from-Decompiling-or-Rever
When I Publish the project, I produce an exe, when I encrypt this exe with ConfuserEx, a new exe is compiled and my files after Publish do not work with this new exe.
When I create a Setup project with Visual Studio I have only one Setup.exe file.
How can I hide the codes and connection string with ConfuserEx and make a setup file?
If you want to keep your database safe you should create a web service for getting and saving data from the database. Have your windows application call the web service.
I would look at using dotfuscator if you want to protect your source code.