SettingConfig 0.0.1

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

// Install SettingConfig as a Cake Tool
#tool nuget:?package=SettingConfig&version=0.0.1

SettingConfig

该项目是一个业务配置维护的Nuget包

使用场景

安装该包后,通过简单对接数据库,就可以实现业务逻辑配置的数据库存储,支持页面修改、历史版本控制,代码中查询以及缓存处理。

接入方案

注入服务配置

builder.Services.AddSettingConfig(options =>
{
    options.DbConnection = dbConnection;
    options.DbSchema = "sample";
});

使用ui界面

app.UseSettingUI();

默认情况下启动项目访问 url/systemsetting 进行访问

项目中如果需要查询配置信息进行注入服务IConfigSettingService

var aa = await _configSettingService.GetConfigContentAsync("aaa");
// 或者
var aa = await _configSettingService.GetConfigAsync<List<string>>("aaa");

功能

  • 个性化配置

    • 页面标题设置
    • 页面路由设置
    • 页面加密访问
  • 系统配置界面

    • 列表展示

      • 配置名、配置key搜索

      • 版本筛选

      • 删除配置

    • 配置编辑

    • 历史配置

  • 存储

    • pgsql存储
  • 使用

    • 项目中查询
    • 查询缓存

扩展

缓存扩展

该项目默认使用内存缓存进行存储,你可以自行继承接口来替换默认的缓存方案。

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SettingConfig:

Package Downloads
Azrng.SettingConfig.BasicAuthorization

SettingConfig的Basic认证扩展

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 72 4/12/2024
1.0.0 78 4/11/2024
0.0.1 152 3/5/2023