Description
Connection strings should come from configuration (appsettings.json, environment variables, or secrets) rather than being hardcoded in source code.Bad Code
Good Code
Properties
- Category: Configuration
- Severity: Info
- Enabled by default: True
- Code fix available: False
