ServantSoftware.SettingsOnADO.Json
1.0.0.18
See the version list below for details.
dotnet add package ServantSoftware.SettingsOnADO.Json --version 1.0.0.18
NuGet\Install-Package ServantSoftware.SettingsOnADO.Json -Version 1.0.0.18
<PackageReference Include="ServantSoftware.SettingsOnADO.Json" Version="1.0.0.18" />
paket add ServantSoftware.SettingsOnADO.Json --version 1.0.0.18
#r "nuget: ServantSoftware.SettingsOnADO.Json, 1.0.0.18"
// Install ServantSoftware.SettingsOnADO.Json as a Cake Addin #addin nuget:?package=ServantSoftware.SettingsOnADO.Json&version=1.0.0.18 // Install ServantSoftware.SettingsOnADO.Json as a Cake Tool #tool nuget:?package=ServantSoftware.SettingsOnADO.Json&version=1.0.0.18
ServantSoftware.SettingsOnADO.Json
An ADO.NET extension for centralizing application settings in a folder of JSON files. Each setting class corresponds to a JSON file, with its contents only having one instance of the setting class serialized.
Table of Contents
Features
- Easy Setup: Integrate with your existing EF Core projects seamlessly.
- Centralized Settings: Store and manage your app settings in a unified manner.
- Single-row Configurations: Each setting class corresponds to a table with a unique configuration row.
Getting Started
Prerequisites
- .NET Framework 4.6.1/.NET 7 or higher
Installation
- Install the
ServantSoftware.SettingsOnADO.Json
package via NuGet:
dotnet add package ServantSoftware.SettingsOnADO.Json
Package Name | Release (NuGet) |
---|---|
ServantSoftware.SettingsOnADO.Json |
Usage
- Define your settings class with properties of simple data types. Here is an example:
namespace SettingsOnADO.Tests.TestClasses;
public class TestSettings
{
public int Id { get; set; }
public string Name { get; set; }
}
- Use the Get and Update methods from JsonSettingsManager to retrieve and update settings:
var settingsManager = new JsonSettingsManager("MyCompanyName", "MyProductName");
var setting = settingsManager.Get<TestSettings>();
setting.Name = "MyName";
settingsManager.Update(setting);
Your application settings will be stored under Environment.SpecialFolder.CommonApplicationData. For example on Windows, the default location in this sample will be:
C:\ProgramData\MyCompanyName\MyProductName\Settings
For more detailed documentation, check our Wiki.
Contributing
We welcome contributions to SettingsOnADO! Here's how you can help:
- Fork the repository on GitHub.
- Clone your fork locally.
- Commit your changes on a dedicated branch.
- Push your branch to your fork.
- Submit a pull request from your fork to the main repository.
- Engage in the review process and address feedback.
Please read our CONTRIBUTING.md for details on the process and coding standards.
Issues
Feel free to submit issues and enhancement requests.
License
SettingsOnADO is licensed under the MIT License. See LICENSE for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- ServantSoftware.Data.Json (>= 1.0.0.258)
- ServantSoftware.SettingsOnADO (>= 1.0.0.18)
-
net7.0
- ServantSoftware.Data.Json (>= 1.0.0.258)
- ServantSoftware.SettingsOnADO (>= 1.0.0.18)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.