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.
<PackageVersion Include="Vettvangur.DictionaryHelper" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Vettvangur.DictionaryHelper" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package Vettvangur.DictionaryHelper@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vettvangur.DictionaryHelper&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Vettvangur.DictionaryHelper&version=1.0.1
                    
Install as a Cake Tool

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.5.0 840 3/20/2025
4.4.0 668 12/4/2024
4.3.0 666 10/16/2024
4.2.0 1,647 4/29/2024
4.1.0 2,336 7/7/2023
4.0.9 425 6/15/2023
4.0.8 242 6/13/2023
4.0.7 299 4/25/2023
4.0.6 309 3/24/2023
4.0.5 274 3/24/2023
4.0.4 338 3/8/2023
4.0.3 386 1/17/2023
4.0.2 414 1/13/2023
4.0.1 374 1/13/2023
4.0.0 380 1/13/2023
3.1.0 413 1/17/2023
3.0.8 383 1/13/2023
3.0.7 369 1/13/2023
3.0.6 389 1/13/2023
3.0.5 389 1/12/2023
3.0.4 391 12/29/2022
3.0.3 500 10/14/2022
3.0.2 488 10/14/2022
3.0.1 500 10/14/2022
3.0.0 470 10/12/2022
1.1.0 378 1/17/2023
1.0.10 493 11/9/2021
1.0.9 672 11/9/2021
1.0.8 3,269 10/9/2020
1.0.7 572 10/9/2020
1.0.6 621 10/8/2020
1.0.5 14,064 12/22/2017
1.0.4 1,597 12/22/2017
1.0.3 1,554 12/22/2017
1.0.2 1,515 12/22/2017
1.0.1 1,520 12/22/2017
1.0.0 1,688 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.