feat: 重构项目结构,添加 WPF 应用
- 将核心功能提取到 WCTDataMiner.Core 类库 - 添加 WCTDataMiner.Wpf 桌面应用 - 支持数据解析、导出、统计等功能 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
30
src/WCTDataMiner.Core/Models/TestScenario.cs
Normal file
30
src/WCTDataMiner.Core/Models/TestScenario.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
namespace WCTDataMiner.Core.Models;
|
||||
|
||||
/// <summary>
|
||||
/// 测试场景实体 - 通过外键关联各维度表
|
||||
/// </summary>
|
||||
public class TestScenario
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public Guid TxPanelId { get; set; }
|
||||
public Guid TxHardwareId { get; set; }
|
||||
public Guid TxSoftwareId { get; set; }
|
||||
public Guid RxTypeId { get; set; }
|
||||
public string? TestPurpose { get; set; }
|
||||
public DateOnly TestDate { get; set; }
|
||||
public int TestSequence { get; set; } = 1;
|
||||
public int QfodCount { get; set; } = 0;
|
||||
public int PlossCount { get; set; } = 0;
|
||||
public bool IsDeleted { get; set; } = false;
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
// Navigation Properties - 维度表
|
||||
public TxPanel TxPanel { get; set; } = null!;
|
||||
public TxHardware TxHardware { get; set; } = null!;
|
||||
public TxSoftware TxSoftware { get; set; } = null!;
|
||||
public RxType RxType { get; set; } = null!;
|
||||
|
||||
// Navigation Properties - 数据记录
|
||||
public ICollection<QfodRecord> QfodRecords { get; set; } = [];
|
||||
public ICollection<PlossRecord> PlossRecords { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user