c# - Entity framework connecting to database with app.config -
i'm developing program using entity framework wpf , using sql credentials on database.
when deploying program produces program.exe.config file contains connection string. user can open , see credentials data (sql username & password). searched figure out way hide them or encrypt nothing useful in case. found entity using base variable connection app.config when tried after many ways pass connection string directly right way faced problem provider in connection string.
[solved] let connection app.config fake data username , password . created setting store connection string . , @ instantiating of db entity changing connection property stored in settings . guess connection safe .
Comments
Post a Comment