ServantSoftware.SettingsOnEF.Common 1.0.0.31

There is a newer version of this package available.
See the version list below for details.
dotnet add package ServantSoftware.SettingsOnEF.Common --version 1.0.0.31                
NuGet\Install-Package ServantSoftware.SettingsOnEF.Common -Version 1.0.0.31                
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.Common" Version="1.0.0.31" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ServantSoftware.SettingsOnEF.Common --version 1.0.0.31                
#r "nuget: ServantSoftware.SettingsOnEF.Common, 1.0.0.31"                
#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.
// Install ServantSoftware.SettingsOnEF.Common as a Cake Addin
#addin nuget:?package=ServantSoftware.SettingsOnEF.Common&version=1.0.0.31

// Install ServantSoftware.SettingsOnEF.Common as a Cake Tool
#tool nuget:?package=ServantSoftware.SettingsOnEF.Common&version=1.0.0.31                

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.

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 provider to use for storage

Installation

  1. Install the ServantSoftware.SettingsOnEF package via NuGet:
dotnet add package ServantSoftware.SettingsOnEF
Package Name Release (NuGet)
ServantSoftware.SettingsOnEF.Common NuGet
ServantSoftware.SettingsOnEF 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 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:

  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 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 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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ServantSoftware.SettingsOnEF.Common:

Package Downloads
ServantSoftware.SettingsOnEF

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.41 116 6/7/2024
1.0.0.40 157 3/27/2024
1.0.0.39 148 3/17/2024
1.0.0.38 150 3/16/2024
1.0.0.36 268 11/21/2023
1.0.0.35 255 10/24/2023
1.0.0.34 165 10/23/2023
1.0.0.33 154 10/23/2023
1.0.0.32 163 10/23/2023
1.0.0.31 150 10/23/2023
1.0.0.30 164 10/23/2023
1.0.0.29 165 10/23/2023
1.0.0.28 178 10/23/2023
1.0.0.27 171 10/23/2023
1.0.0.26 157 10/23/2023
1.0.0.25 164 10/10/2023
1.0.0.24 171 10/8/2023
1.0.0.23 166 10/8/2023
1.0.0.22 169 9/27/2023
1.0.0.21 169 9/27/2023
1.0.0.20 171 9/26/2023
1.0.0.19 175 9/24/2023
1.0.0.18 157 9/24/2023
1.0.0.17 167 9/24/2023
1.0.0.16 168 9/23/2023