You can't; you can spend money on making it harder to read, but it will still be a list of computer-instructions that can be read by both CPU and user.
salar1369 wrote:1)how could i prevent users from seeing these source files?
No; applications should be installed in the program files folder (that's where applications go) and data in the users documents folder.
salar1369 wrote:2)is this way of publishing (put every thing in release folder for installation of end user) correct?
If it is irreversable, how would you read it?
salar1369 wrote:3)should i directly put MDF and LDF files or have to do a some work of securing them like compiling into irreversible format that only application can use it not anyone else?
salar1369 wrote:5)am i missing a concept in the way of publishing an application with local database?
If the database is local on my system, you cannot lock me out - I'm the owner of my machine and its data. If you want to make sure that people don't get into your database, then the only option is to "not" use a local database, but host one.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]