/// <summary> /// Removes a soup name from the master soup, if it exists. /// </summary> /// <param name="soupName"></param> private void RemoveSoupNameFromMasterSoup(String soupName) { if (!DoesMasterSoupContainSoup(soupName)) { return; } try { long soupEntryId = _smartStore.LookupSoupEntryId(SoupOfSoups, SoupNamesKey, soupName); _smartStore.Delete(SoupOfSoups, new[] { soupEntryId }, false); } catch (SmartStoreException e) { Debug.WriteLine("SmartStoreException occurred while attempting to cache data: ", e.ToString()); } }
/// <summary> /// Removes a soup name from the master soup, if it exists. /// </summary> /// <param name="soupName"></param> private void RemoveSoupNameFromMasterSoup(String soupName) { if (!DoesMasterSoupContainSoup(soupName)) { return; } try { long soupEntryId = _smartStore.LookupSoupEntryId(SoupOfSoups, SoupNamesKey, soupName); _smartStore.Delete(SoupOfSoups, new[] { soupEntryId }, false); } catch (SmartStoreException e) { PlatformAdapter.SendToCustomLogger(e, LoggingLevel.Error); Debug.WriteLine("SmartStoreException occurred while attempting to cache data"); } }