The Litium.Common namespace contain general functionality


Litium.Common.KeyLookupService can be used for high performance lookup between Id and SystemId of entities. When a value is requested it is cached for future calls making it possible to lookup SystemId for an Id and vice versa.

Example getting SystemId for currency from Id:

_keyLookupService.TryGetId<Currency>(entity.CurrencySystemId, out id)


Litium.Common.SettingService is a simple key-value storage that can be used to store serializable objects in the database.

Example usage:

var lastSyncDate = _settingService.Get<DateTimeOffset>(key);
// Sync stuff...
_settingService.Set(key, DateTimeOffset.Now);


Is this page helpful?
Thank you for your feedback!