3.5 KiB
3.5 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-17T16:45:48.166150+00:00 | zai-org/GLM-5-FP8 | 1 | 414dafff4d3f4086 |
Documentation: DatabaseUnitTesting.Properties.Settings
1. Purpose
This module is an auto-generated settings class that provides strongly-typed access to application configuration values for the DatabaseUnitTesting project. It exists to centralize configuration management for database unit testing, specifically storing connection parameters, database names, and snapshot identifiers. The class is generated by Visual Studio's SettingsSingleFileGenerator tool and serves as the configuration layer between the unit test code and the underlying .settings file.
2. Public Interface
Settings (sealed partial class)
Inherits from: global::System.Configuration.ApplicationSettingsBase
| Member | Signature | Scope | Description |
|---|---|---|---|
Default |
public static Settings Default { get; } |
Static | Returns the singleton default instance of the Settings class, synchronized for thread-safe access. |
ConnectionString |
public string ConnectionString { get; } |
Application-scoped | Returns the database connection string for the unit test database. Read-only. Default value points to FAJITA\DEV_SQL server with DataPRO_UnitTest catalog. |
DBName |
public string DBName { get; set; } |
User-scoped | Gets or sets the database name. Default value is "DataPRO_UnitTest". |
DBSnapshot |
public string DBSnapshot { get; set; } |
User-scoped | Gets or sets the database snapshot name. Default value is "DataPRO_UnitTestSnapshot". |
3. Invariants
- Auto-generated constraint: This file is machine-generated by
Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGeneratorversion17.10.0.0. Manual modifications will be lost upon regeneration. - Singleton pattern: The
defaultInstancefield is created once viaSynchronized()and returned through theDefaultproperty. - Scope immutability:
ConnectionStringis application-scoped (read-only at runtime);DBNameandDBSnapshotare user-scoped (read/write). - Type safety: All settings are typed as
string; accessors perform explicit casts from the underlying settings dictionary.
4. Dependencies
This module depends on:
System.Configuration.ApplicationSettingsBase- Base class providing settings management infrastructureSystem.Configuration.ApplicationScopedSettingAttribute- Attribute for application-level settingsSystem.Configuration.UserScopedSettingAttribute- Attribute for user-level settingsSystem.Configuration.SpecialSettingAttribute- MarksConnectionStringas a special connection string typeSystem.Configuration.DefaultSettingValueAttribute- Provides default values for each settingSystem.Runtime.CompilerServices.CompilerGeneratedAttribute- Indicates tool-generated codeSystem.CodeDom.Compiler.GeneratedCodeAttribute- Metadata about the code generator
What depends on this module:
- Inferred: Any code within the
DatabaseUnitTestingproject that accesses configuration values viaSettings.Default.
5. Gotchas
- Hardcoded credentials in source control: The
ConnectionStringdefault value contains a plaintext SQL Serversapassword (!!QQAAZZxxssww22). This is a significant security risk and should be moved to a secure configuration mechanism (e.g