public static ContainerDetail Load(string tID) { if (ContainerDetailCache.ContainsKey(tID)) { return(ContainerDetailCache[tID]); } else { ContainerDetail cd = new ContainerDetail(); cd.ID = tID; cd.Select(); if (cd != null) { ContainerDetailCache.Add(tID, cd); } return(cd); } }
public static void RefreshCache() { ContainerDetailCache.Clear(); }