3 Commits (4775b38c835626444ac67b94c69a86392b5162a7)

Author SHA1 Message Date
jiang eb37c0e183 refactor: 重构配置管理和测试规范
数据库配置:
- 将数据库连接字符串移到 web.config 的环境变量中
- 从 appsettings.json 删除 ConnectionStrings 节点
- 使用 ConnectionStrings__CNCBusinessDB 和 ConnectionStrings__CNCLLogDB 格式

系统配置:
- 创建 App_Data 目录存储系统配置
- 创建 system_config.json 存储 CollectionSettings、LoggingSettings、AlarmSettings 等
- 更新 Haoliang.Api.csproj 包含 App_Data/**/* 内容到输出

测试规范:
- 创建 testing-requirements.md 测试规范文档
- 删除旧的 Tests 项目并重建
- 创建 SystemControllerTests.cs 实现 100% 方法/分支/参数覆盖
- 添加 Haoliang.Api 项目引用以支持测试

符合要求:
- 数据库配置仅存储在 web.config
- 其他系统配置存储在 App_Data/system_config.json
- App_Data 作为项目内容,随项目一起编译和发布
3 weeks ago
821644@qq.com c3d17cebb9 Continue fixing compilation errors after .NET 8 upgrade
- Fixed CNCDbContext type references in repositories
- Fixed ambiguous TagData and DeviceCurrentStatus references
- Added missing using statements to repository files
- Updated DataCollection namespace references

Note: There are still remaining DbContext/model mismatches that need to be resolved
4 weeks ago
821644@qq.com f90cbd7209 Initial commit: Complete .NET6 CNC machine data collection and analysis system
- Created standard .NET6 project structure with Haoliang.Api, Haoliang.Core, Haoliang.Data, Haoliang.Models, and Haoliang.Tests
- Implemented device management API with Entity Framework Core and MySQL
- Added production calculation logic for CNC machine output statistics
- Created comprehensive data models for devices, templates, production records, users, and system
- Implemented repository pattern for data access
- Added comprehensive test coverage for models and production logic
- Fixed version compatibility issues with Pomelo.EntityFrameworkCore.MySql and Microsoft.AspNetCore.Cors
4 weeks ago