How to get the list of settings from the ecommerce module?

How should we get the list of settings from Litium.Foundation.Modules.ECommerce.Settings.SettingCollection after upgrading to 7.6.2? The GetAll() method that we used to work before is not implemented anymore.

7.6.2:

7.4.2:

Litium version: 7.6.2

Use Litium.Common.SettingService instead, all old settings are migrated with the ECOM_ as prefix for all settings.

Thanks, but is there a way to get more than one setting at a time or search for settinsg? This is an old solution that stores things with key prefixes so we need to get all settings whose keys start with “foo”.

And where in the database are the settings migrated to? The old table ECommerce_Settings is unchanged so I guess it’s not used anymore?

@patric.forsgard I found the migrated data in the Common.Setting table. Maybe we need to write a custom db query to replicate the old functionality and fetch all settings with a specific prefix?

Not sure why you need to iterate over all keys, it’s not good to do that for performance.

Can you add a new settings that contains a list of the settings keys that you are interested in?
or rewrite the communication part with the settingservice so that using an List<string> or Dictionary<string, string> as the storage object that contains all your strings.

Yeah, it’s an old solution that needs rewriting for sure. In the meantime we created a new layer that fetches all the settings we need from the SettingService and caches the list.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.