STAGE 3-4

This commit is contained in:
2025-11-12 18:57:51 +08:00
parent 744eddcd77
commit ae09a6f487
17 changed files with 80 additions and 35 deletions

View File

@@ -23,6 +23,12 @@ namespace Model
public virtual ICollection<actItem_files> actItem_files { get; set; }
}
// TODO: CRITICAL - 靜態字段設計問題(同 follower.cs
// 權衡AsEnumerable() vs ToList()
// - AsEnumerable(): 不立即佔內存,但 DbContext 未 Dispose有風險
// - ToList(): 立即載入所有 files 到內存(可能很大)且數據過時
// 建議:改為實例方法或使用緩存機制
// 暫時保留 AsEnumerable() 避免立即載入大量數據
public static IEnumerable<Model.file> allFiles = new Model.ezEntities().files.AsEnumerable();
}
}