Files
DP44/docs/ai/Common/DTS.Common/Interface/TestMetaData.md
2026-04-17 14:55:32 -04:00

56 lines
2.9 KiB
Markdown

---
source_files:
- Common/DTS.Common/Interface/TestMetaData/ITestEngineerDetailsDbRecord.cs
- Common/DTS.Common/Interface/TestMetaData/ICustomerDetailsDbRecord.cs
- Common/DTS.Common/Interface/TestMetaData/ILabratoryDetailsDbRecord.cs
generated_at: "2026-04-17T16:36:24.942784+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "906e36c501c7f613"
---
# Documentation: DTS.Common.Interface.TestMetaData
## 1. Purpose
This module defines data contract interfaces for test metadata entities within the DTS system. It provides three interfaces—`ITestEngineerDetailsDbRecord`, `ICustomerDetailsDbRecord`, and `ILabratoryDetailsDbRecord`—that abstract database records representing test engineers, customers, and laboratories respectively. These interfaces serve as ORM-mappable contracts, using DataAnnotations attributes to specify primary keys and column mappings, enabling loose coupling between database schema and consuming code.
---
## 2. Public Interface
### `ITestEngineerDetailsDbRecord`
Defines a record in the `TestEngineerDetails` database table.
| Property | Type | Attributes | Description |
|----------|------|------------|-------------|
| `TestEngineerId` | `int` | `[Key]`, `[Column("TestEngineerId")]` | Primary key for the record |
| `Name` | `string` | `[Column("Name")]` | Name field |
| `TestEngineerName` | `string` | `[Column("TestEngineerName")]` | Test engineer name |
| `TestEngineerPhone` | `string` | `[Column("TestEngineerPhone")]` | Phone number |
| `TestEngineerFax` | `string` | `[Column("TestEngineerFax")]` | Fax number |
| `TestEngineerEmail` | `string` | `[Column("TestEngineerEmail")]` | Email address |
| `LocalOnly` | `bool` | `[Column("LocalOnly")]` | Local-only flag |
| `LastModified` | `DateTime` | `[Column("LastModified")]` | Timestamp of last modification |
| `LastModifiedBy` | `string` | `[Column("LastModifiedBy")]` | User who last modified the record |
| `Version` | `int` | `[Column("Version")]` | Version number for concurrency tracking |
---
### `ICustomerDetailsDbRecord`
Defines a record in the `CustomerDetails` database table.
| Property | Type | Attributes | Description |
|----------|------|------------|-------------|
| `CustomerId` | `int` | `[Key]`, `[Column("CustomerId")]` | Primary key for the record |
| `Name` | `string` | `[Column("Name")]` | Name field |
| `CustomerName` | `string` | `[Column("CustomerName")]` | Customer name |
| `CustomerTestRefNumber` | `string` | `[Column("CustomerTestRefNumber")]` | Customer test reference number |
| `ProjectRefNumber` | `string` | `[Column("ProjectRefNumber")]` | Project reference number |
| `CustomerOrderNumber` | `string` | `[Column("CustomerOrderNumber")]` | Customer order number |
| `CustomerCostUnit` | `string` | `[Column("CustomerCostUnit")]` | Customer cost unit |
| `LocalOnly` | `bool` | `[Column("LocalOnly")]` | Local-only flag |
| `LastModified` | `DateTime` | `[Column("LastModified")]` | Timestamp of last modification |