///<summary>Adds a PrefCache for the given database connection. Used by UnitTestsWeb.</summary> public static void AddCache(ConnectionNames connName) { DataAction.Run(() => { PrefCache cache = new PrefCache(); if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { DataTable table = GetTableFromCache(false); cache.FillCacheFromTable(table); } else { cache.GetTableFromCache(true); } _dictCachesForDbs[connName] = cache; }, connName); }