init
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/DatabaseImporter/DatabaseImport/Properties/AssemblyInfo.cs
|
||||
- DataPRO/Modules/DatabaseImporter/DatabaseImport/Properties/Settings.Designer.cs
|
||||
generated_at: "2026-04-17T16:28:42.805400+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "798fca9d3593b72e"
|
||||
---
|
||||
|
||||
# Properties
|
||||
|
||||
### Purpose
|
||||
This module provides assembly-level metadata and application/user settings configuration for the DatabaseImport assembly. It defines persistent configuration values including download paths, auto-arm permissions, calibration warning periods, database type selection, and ISO export compatibility requirements.
|
||||
|
||||
### Public Interface
|
||||
|
||||
**`Settings` (sealed partial class, internal)**
|
||||
- `public static Settings Default { get; }` — Singleton instance accessor returning synchronized settings.
|
||||
- `public string DownloadFolder { get; }` — Application-scoped setting, default value `"..\\Data"`.
|
||||
- `public bool AllowAutoArm { get; }` — Application-scoped setting, default value `false`.
|
||||
- `public int CalWarningPeriodDays { get; set; }` — User-scoped setting, default value `7`.
|
||||
- `public int DBType { get; }` — Application-scoped setting, default value `1`.
|
||||
- `public bool RequireXCrashCompatibilityForISOExports { get; }` — Application-scoped setting, default value `true`.
|
||||
|
||||
### Invariants
|
||||
- `Settings` inherits from `System.Configuration.ApplicationSettingsBase` and uses thread synchronization via `Synchronized()`.
|
||||
- Application-scoped settings (`DownloadFolder`, `AllowAutoArm`, `DBType`, `RequireXCrashCompatibilityForISOExports`) are read-only at runtime.
|
||||
- User-scoped settings (`CalWarningPeriodDays`) can be modified and persisted.
|
||||
- The class is auto-generated by `SettingsSingleFileGenerator`; manual changes will be overwritten.
|
||||
|
||||
### Dependencies
|
||||
- **Depends on**: `System.Configuration.ApplicationSettingsBase`, `System.Runtime.CompilerServices`, `System.CodeDom.Compiler`.
|
||||
- **Depended on by**: Unclear from source alone; likely consumed throughout the DatabaseImport assembly for configuration access.
|
||||
|
||||
### Gotchas
|
||||
- `DownloadFolder` uses a relative path `"..\\Data"`; the actual location depends on the working directory at runtime.
|
||||
- `DBType` is an integer (default `1`); the mapping of integer values to database types is not defined in this source.
|
||||
- The `CalWarningPeriodDays` is user-scoped, meaning it can vary per user profile; other settings are application-wide.
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user