Vettvangur.DictionaryHelper 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Vettvangur.DictionaryHelper --version 1.0.1
NuGet\Install-Package Vettvangur.DictionaryHelper -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vettvangur.DictionaryHelper" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vettvangur.DictionaryHelper --version 1.0.1
#r "nuget: Vettvangur.DictionaryHelper, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vettvangur.DictionaryHelper as a Cake Addin
#addin nuget:?package=Vettvangur.DictionaryHelper&version=1.0.1

// Install Vettvangur.DictionaryHelper as a Cake Tool
#tool nuget:?package=Vettvangur.DictionaryHelper&version=1.0.1

Umbraco DictionaryHelper

This project was specifically created to fix sql issues we had with the core Umbraco dictionary service.

All dictionary items are fetched and inserted into concurrency dictionary cache on start up and will be accessible with an extension on Umbraco helper.

Example of usage with Umbraco helper:

@using DictionaryHelper;

@Umbraco.DictionaryValue("key") //Fetches the value of the dictionary item. Returns empty string if not found.
@Umbraco.DictionaryValue("key", "Default value") //Fetches the value of the dictionary item. Returns the default value if value is empty or key not found.
@Umbraco.DictionaryValue("key", "Default value", true) //Fetches the value of the dictionary item. Returns the default value if value is empty or key not found and will create the dictionary item with the default value if the key is not found.

Example of usage with service:

using DictionaryHelper;

@Service.GetValueByKeyAndCulture("key", "en-GB") 
@Service.GetValueByKeyAndCulture("key", "en-GB", "Default value") 
@Service.GetValueByKeyAndCulture("key", "en-GB", "Default value", true)

Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.1.0 985 7/7/2023
4.0.9 334 6/15/2023
4.0.8 129 6/13/2023
4.0.7 201 4/25/2023
4.0.6 223 3/24/2023
4.0.5 187 3/24/2023
4.0.4 230 3/8/2023
4.0.3 287 1/17/2023
4.0.2 324 1/13/2023
4.0.1 279 1/13/2023
4.0.0 277 1/13/2023
3.1.0 305 1/17/2023
3.0.8 288 1/13/2023
3.0.7 282 1/13/2023
3.0.6 293 1/13/2023
3.0.5 301 1/12/2023
3.0.4 291 12/29/2022
3.0.3 380 10/14/2022
3.0.2 377 10/14/2022
3.0.1 386 10/14/2022
3.0.0 379 10/12/2022
1.1.0 287 1/17/2023
1.0.10 381 11/9/2021
1.0.9 506 11/9/2021
1.0.8 2,315 10/9/2020
1.0.7 441 10/9/2020
1.0.6 467 10/8/2020
1.0.5 13,343 12/22/2017
1.0.4 1,067 12/22/2017
1.0.3 1,040 12/22/2017
1.0.2 1,010 12/22/2017
1.0.1 1,012 12/22/2017
1.0.0 1,180 12/22/2017

First public release. All dictionary items are fetched and inserted into concurrency dictionary cache on start up and will be accessible with an extension on Umbraco helper.