![]() |
VOOZH | about |
dotnet add package Our.Community.Configuration --version 17.0.0
NuGet\Install-Package Our.Community.Configuration -Version 17.0.0
<PackageReference Include="Our.Community.Configuration" Version="17.0.0" />
<PackageVersion Include="Our.Community.Configuration" Version="17.0.0" />Directory.Packages.props
<PackageReference Include="Our.Community.Configuration" />Project file
paket add Our.Community.Configuration --version 17.0.0
#r "nuget: Our.Community.Configuration, 17.0.0"
#:package Our.Community.Configuration@17.0.0
#addin nuget:?package=Our.Community.Configuration&version=17.0.0Install as a Cake Addin
#tool nuget:?package=Our.Community.Configuration&version=17.0.0Install as a Cake Tool
Store configuration data in the Umbraco database.
This plugin allows you to store configuration data in a custom table in the Umbraco database.
To access your settings you will need to inject the configuration service.
IOurConfiguration ourconfig
// Fetch a single config setting
OurConfigDataSchema setting = ourconfig.Get("propAlias");
//Fetch ALL config settings
IEnumerable<OurConfigDataSchema> settings = ourconfig.GetConfig();
//Fetch config settings for a specific group
IEnumerable<OurConfigDataSchema> settings = ourconfig.GetConfigByGroup("TESTGROUP")
Returns an object of the required type (string,int,bool), it will also return the decrypted value if the property is being stored with encryption.
var setting = ourconfig.Value(fieldname);
| Property | Type | Description |
|---|---|---|
Id |
int |
The unique identifier for the configuration entry |
Alias |
string |
The unique alias used to retrieve the setting |
Name |
string |
The display name of the setting |
Value |
string |
The stored value (encrypted if Encrypted is true) |
DataType |
string |
The data type of the value (string, int, bool) |
Group |
string |
The group the setting belongs to |
Encrypted |
bool |
Indicates whether the value is stored with encryption |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Our.Community.Configuration:
| Package | Downloads |
|---|---|
|
Our.Community.Configuration.OptionsProvider
IOptions provider for Our.Community.Configuration |
This package is not used by any popular GitHub repositories.