VOOZH about

URL: https://www.nuget.org/packages/ServantSoftware.SettingsOnEF.Json/

⇱ NuGet Gallery | ServantSoftware.SettingsOnEF.Json 1.0.0.41




ServantSoftware.SettingsOnEF.Json 1.0.0.41

dotnet add package ServantSoftware.SettingsOnEF.Json --version 1.0.0.41
 
 
NuGet\Install-Package ServantSoftware.SettingsOnEF.Json -Version 1.0.0.41
 
 
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="ServantSoftware.SettingsOnEF.Json" Version="1.0.0.41" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ServantSoftware.SettingsOnEF.Json" Version="1.0.0.41" />
 
Directory.Packages.props
<PackageReference Include="ServantSoftware.SettingsOnEF.Json" />
 
Project file
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 ServantSoftware.SettingsOnEF.Json --version 1.0.0.41
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ServantSoftware.SettingsOnEF.Json, 1.0.0.41"
 
 
#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 ServantSoftware.SettingsOnEF.Json@1.0.0.41
 
 
#: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=ServantSoftware.SettingsOnEF.Json&version=1.0.0.41
 
Install as a Cake Addin
#tool nuget:?package=ServantSoftware.SettingsOnEF.Json&version=1.0.0.41
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ServantSoftware.SettingsOnEF.Json

An EF Core extension for centralizing application settings in JSON files. Each setting class corresponds to a table, with each table having a single-row configuration.

👁 Build Status
👁 Version
👁 License
👁 Nuget

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 project

Installation

  1. Install the ServantSoftware.SettingsOnEF.Json package via NuGet:
dotnet add package ServantSoftware.SettingsOnEF.Json
Package Name Release (NuGet)
ServantSoftware.SettingsOnEF.Json 👁 NuGet

Usage

  1. 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; }
}
  1. Use the Get and Update methods from JsonSettingsManager to retrieve and update settings:
var settingsManager = new JsonSettingsManager("MyCompanyName", "MyProductName");

var setting = settingsManager.Get<SomeSetting>();
setting.SomeProperty = "NewValue";
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 SettingsOnEF! Here's how you can help:

  1. Fork the repository on GitHub.
  2. Clone your fork locally.
  3. Commit your changes on a dedicated branch.
  4. Push your branch to your fork.
  5. Submit a pull request from your fork to the main repository.
  6. Engage in the review process and address feedback.

Please read our 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 for more information.

Product Versions Compatible and additional computed target framework versions.
.NET net7.0 net7.0 is compatible.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0.41 231 6/7/2024
1.0.0.40 232 3/27/2024
1.0.0.39 246 3/17/2024
1.0.0.38 239 3/16/2024
1.0.0.36 316 11/21/2023
1.0.0.35 311 10/24/2023
1.0.0.34 226 10/23/2023
1.0.0.33 220 10/23/2023
1.0.0.32 227 10/23/2023
1.0.0.31 225 10/23/2023
1.0.0.30 225 10/23/2023
1.0.0.29 208 10/23/2023
1.0.0.28 228 10/23/2023
1.0.0.27 235 10/23/2023
1.0.0.26 216 10/23/2023
1.0.0.25 239 10/10/2023
1.0.0.24 231 10/8/2023
1.0.0.23 218 10/8/2023
1.0.0.22 230 9/27/2023
1.0.0.21 221 9/27/2023
Loading failed