Our.Community.Configuration
17.0.0
dotnet add package Our.Community.Configuration --version 17.0.0
NuGet\Install-Package Our.Community.Configuration -Version 17.0.0
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="Our.Community.Configuration" Version="17.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Our.Community.Configuration" Version="17.0.0" />
<PackageReference Include="Our.Community.Configuration" />
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 Our.Community.Configuration --version 17.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Our.Community.Configuration, 17.0.0"
#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 Our.Community.Configuration@17.0.0
#: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=Our.Community.Configuration&version=17.0.0
#tool nuget:?package=Our.Community.Configuration&version=17.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Our.Community.Configuration - Umbraco 17+
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
Add Property
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(fieldname);
OurConfigDataSchema
| 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 |
Example usage
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Effortless.Net.Core.Encryption (>= 1.3.1)
- System.Runtime.Caching (>= 10.0.5)
- Umbraco.Cms.Api.Common (>= 17.0.0)
- Umbraco.Cms.Api.Management (>= 17.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.