示例#1
0
            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);
                }
            }
示例#2
0
 public static void RefreshCache()
 {
     ContainerDetailCache.Clear();
 }