Our.Community.Configuration
1.0.0-rc2
See the version list below for details.
dotnet add package Our.Community.Configuration --version 1.0.0-rc2
NuGet\Install-Package Our.Community.Configuration -Version 1.0.0-rc2
<PackageReference Include="Our.Community.Configuration" Version="1.0.0-rc2" />
paket add Our.Community.Configuration --version 1.0.0-rc2
#r "nuget: Our.Community.Configuration, 1.0.0-rc2"
// Install Our.Community.Configuration as a Cake Addin #addin nuget:?package=Our.Community.Configuration&version=1.0.0-rc2&prerelease // Install Our.Community.Configuration as a Cake Tool #tool nuget:?package=Our.Community.Configuration&version=1.0.0-rc2&prerelease
Our.Community.Configuration
Store configuration data in the Umbraco database.
This plugin allows you to store configuration data in a custom table in the Umbraco database.
Supported data types
- Strings (can be encrypted)
- Numbers
- Booleans
Dashboard
<img src="https://github.com/huwred/Our.Community.Configuration/blob/main/Documentation/images/dashboard.png" width="800" alt="Settings Dashboard" title="Settings Dashboard"/>
Add Property
<img src="https://github.com/huwred/Our.Community.Configuration/blob/main/Documentation/images/overlay.png" width="400" alt="Add Property" title="Add property dialog"/>
Access properties in code
To access your settings you will need to inject the configuration service.
IOurConfiguration ourconfig
Getting config data
// 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")
Retrieving a value
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();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Effortless.Net.Core.Encryption (>= 1.3.1)
- Umbraco.Cms.Web.BackOffice (>= 10.0.0 && < 10.999.0)
- Umbraco.Cms.Web.Website (>= 10.0.0 && < 10.999.0)
-
net7.0
- Effortless.Net.Core.Encryption (>= 1.3.1)
- Umbraco.Cms.Web.BackOffice (>= 11.0.0 && < 13.0.0)
- Umbraco.Cms.Web.Website (>= 11.0.0 && < 13.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Our.Community.Configuration:
Package | Downloads |
---|---|
Our.Community.Configuration.OptionsProvider
IOptions provider for Our.Community.Configuration |
GitHub repositories
This package is not used by any popular GitHub repositories.