ServantSoftware.SettingsOnEF
1.0.0.36
See the version list below for details.
dotnet add package ServantSoftware.SettingsOnEF --version 1.0.0.36
NuGet\Install-Package ServantSoftware.SettingsOnEF -Version 1.0.0.36
<PackageReference Include="ServantSoftware.SettingsOnEF" Version="1.0.0.36" />
paket add ServantSoftware.SettingsOnEF --version 1.0.0.36
#r "nuget: ServantSoftware.SettingsOnEF, 1.0.0.36"
// Install ServantSoftware.SettingsOnEF as a Cake Addin #addin nuget:?package=ServantSoftware.SettingsOnEF&version=1.0.0.36 // Install ServantSoftware.SettingsOnEF as a Cake Tool #tool nuget:?package=ServantSoftware.SettingsOnEF&version=1.0.0.36
ServantSoftware.SettingsOnEF
An EF Core extension for centralizing application settings in the database. Each setting class corresponds to a table, with each table having a single-row configuration.
A specialized JSON settings manager uses the JSON EF Core Provider
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 7 or higher
- An existing EF Core provider to use for storage
Installation
- Install the
ServantSoftware.SettingsOnEF
package via NuGet:
dotnet add package ServantSoftware.SettingsOnEF
Package Name | Release (NuGet) |
---|---|
ServantSoftware.SettingsOnEF.Common |
|
ServantSoftware.SettingsOnEF |
Usage
- Define your settings class and mark it with the SettingsEntity attribute. Here is an example:
namespace SettingsOnEF.Tests.Test_Classes;
[SettingsEntity]
public class SomeSetting
{
public string SomeProperty { get; set; }
}
- Use the Get and Update methods from SettingsManager to retrieve and update settings:
var settingsManager = new SettingsManager(contextBuilder => contextBuilder.UseSqlite($"Data Source=InMemorySample;Mode=Memory;Cache=Shared"));
var setting = settingsManager.Get<SomeSetting>();
setting.SomeProperty = "NewValue";
settingsManager.Update(setting);
For more detailed documentation, check our Wiki.
Contributing
We welcome contributions to SettingsOnEF! 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
SettingsOnEF is licensed under the MIT License. See LICENSE for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net7.0
- Microsoft.EntityFrameworkCore.Relational (>= 6.0.10)
- ServantSoftware.SettingsOnEF.Common (>= 1.0.0.36)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ServantSoftware.SettingsOnEF:
Package | Downloads |
---|---|
ServantSoftware.SettingsOnEF.Json
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0.41 | 105 | 6/7/2024 |
1.0.0.40 | 139 | 3/27/2024 |
1.0.0.39 | 138 | 3/17/2024 |
1.0.0.38 | 144 | 3/16/2024 |
1.0.0.36 | 248 | 11/21/2023 |
1.0.0.35 | 238 | 10/24/2023 |
1.0.0.34 | 172 | 10/23/2023 |
1.0.0.33 | 148 | 10/23/2023 |
1.0.0.32 | 156 | 10/23/2023 |
1.0.0.31 | 161 | 10/23/2023 |
1.0.0.30 | 159 | 10/23/2023 |
1.0.0.29 | 146 | 10/23/2023 |
1.0.0.28 | 179 | 10/23/2023 |
1.0.0.27 | 145 | 10/23/2023 |
1.0.0.26 | 136 | 10/23/2023 |
1.0.0.25 | 152 | 10/10/2023 |
1.0.0.24 | 155 | 10/8/2023 |
1.0.0.23 | 153 | 10/8/2023 |
1.0.0.22 | 160 | 9/27/2023 |
1.0.0.21 | 159 | 9/27/2023 |
1.0.0.20 | 163 | 9/26/2023 |
1.0.0.19 | 151 | 9/24/2023 |
1.0.0.18 | 135 | 9/24/2023 |
1.0.0.17 | 166 | 9/24/2023 |
1.0.0.16 | 157 | 9/23/2023 |
1.0.0.15 | 153 | 9/22/2023 |
1.0.0.14 | 150 | 9/19/2023 |
1.0.0.13 | 147 | 9/19/2023 |
1.0.0.12 | 160 | 9/19/2023 |
1.0.0.11 | 159 | 9/19/2023 |
1.0.0.10 | 142 | 9/19/2023 |
1.0.0.9 | 153 | 9/19/2023 |
1.0.0.8 | 139 | 9/19/2023 |
1.0.0.7 | 141 | 9/18/2023 |
1.0.0.6 | 146 | 8/25/2023 |