yiming
3f63457c5a
修復 memberController.cs 中 nullable 字段的處理
問題:
1. CS1503: mem_num 是 int? 類型,不能直接用於 Contains(int)
2. CS0019: Count 應該使用方法調用 Count()
修復:
- 第 110 行:加入 HasValue 檢查和 .Value 取值
- 第 111 行:使用 Count() 方法而非 Count 屬性
技術說明:
在 LINQ to Entities 中處理 nullable 字段時,必須:
1. 使用 HasValue 檢查是否有值
2. 使用 .Value 取得實際值
3. 確保類型匹配以便正確生成 SQL 查詢
相關文件已正確處理:
✓ accountingController.cs (第 97 行)
✓ stockController.cs (第 92 行)
2025-11-12 17:04:03 +08:00
..
2025-11-12 15:58:20 +08:00
2025-11-12 17:04:03 +08:00
2025-09-04 18:30:54 +08:00
2025-08-29 01:27:25 +08:00
2025-09-11 00:47:51 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-09-10 00:21:47 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-08-29 01:27:25 +08:00
2025-11-12 15:58:20 +08:00
2025-11-12 15:58:20 +08:00
2025-08-29 01:27:25 +08:00
2025-09-05 08:14:03 +08:00