2.1 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-17T16:45:55.734203+00:00 | zai-org/GLM-5-FP8 | 1 | b40972ee3c12f7cc |
Documentation: DASFactoryDb.Config.Config
1. Purpose
This module provides a static utility class for persisting and managing DAS (Data Acquisition System) configuration data to a SQL Server database. It serves as a data access layer that wraps stored procedure calls for inserting DAS device information, clearing DAS records, and storing XML configuration data. The class abstracts away ADO.NET command construction, parameter handling, and connection management for consumers.
2. Public Interface
DASInfoInsert
Signature:
public static int DASInfoInsert(
int iDASRecordId,
string macAddress,
int owningDASId,
uint maxNumberOfModules,
ulong? maxEventStorageSpaceInBytes,
ulong? numberOfBytesPerSampleClock,
string batteryId,
DateTime? calibrationDate
)
Behavior: Inserts a new DAS information record by calling the sp_DASInfoInsert stored procedure. Returns the newly generated record ID as an int. Handles null macAddress by substituting an empty string. Clamps calibrationDate values below SqlDateTime.MinValue to SqlDateTime.MinValue. Null values for maxEventStorageSpaceInBytes and numberOfBytesPerSampleClock are converted to 0. Errors from the stored procedure are processed via DbWrapper.ProcessReturn().
DASInfoClear
Signature:
public static void DASInfoClear(int iDASRecordId)
Behavior: Clears DAS information for the specified record by calling the sp_DASInfoClear stored procedure. Silently returns without action if DbWrapper.Connected is false. Errors from the stored procedure are processed via DbWrapper.ProcessReturn().
SetConfiguration
Signature:
public static void SetConfiguration(
int iDASRecordId,
string xml,
int fileStore
)
Behavior: Persists configuration data by calling the sp_ConfigDataSet stored procedure. The xml string is converted to a UTF-8 byte array and stored as `Var