renchuu
renchuu
CC#
Created by renchuu on 7/23/2024 in #help
✅ Storing connection string securely
I am developing a web API and I created my database first on azure. To create the models i used this command Scaffold-DbContext "CONNECTION STRING" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models Now I have my string right in the DBcontext.cs file. I don't want to keep the string in the code like that. How can I store my string in a secure way?
7 replies