Sup.OpenApi.Configuration 2026.10.33

dotnet add package Sup.OpenApi.Configuration --version 2026.10.33
                    
NuGet\Install-Package Sup.OpenApi.Configuration -Version 2026.10.33
                    
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="Sup.OpenApi.Configuration" Version="2026.10.33" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sup.OpenApi.Configuration" Version="2026.10.33" />
                    
Directory.Packages.props
<PackageReference Include="Sup.OpenApi.Configuration" />
                    
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 Sup.OpenApi.Configuration --version 2026.10.33
                    
#r "nuget: Sup.OpenApi.Configuration, 2026.10.33"
                    
#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 Sup.OpenApi.Configuration@2026.10.33
                    
#: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=Sup.OpenApi.Configuration&version=2026.10.33
                    
Install as a Cake Addin
#tool nuget:?package=Sup.OpenApi.Configuration&version=2026.10.33
                    
Install as a Cake Tool

Sup.OpenApi.Configuration

SUP开放API配置组件 - .NET 8.0

NuGet

简介

Sup.OpenApi.Configuration 是 SUP 开放 API 平台的配置组件,提供建模配置和数据库连接配置的获取与管理能力。

主要功能

  • 建模配置获取:批量获取建模信息配置
  • 数据库配置获取:获取数据库连接配置
  • 配置缓存:支持配置信息缓存管理
  • 类型转换:统一的配置类型转换

安装

dotnet add package Sup.OpenApi.Configuration

快速开始

1. 使用 Helper 获取配置

using Sup.OpenApi;
using Sup.OpenApi.Configuration;

var helper = OpenServiceHelper.GetHelper(config);

// 获取建模配置
var modeling = helper.Modeling;
var modelConfig = await modeling.GetModelConfig("model-id");

// 获取数据库配置
var database = helper.Database;
var dbConfig = await database.GetDatabaseConfig("database-id");

2. 批量获取配置

// 批量获取建模配置
var modelConfigs = await modeling.GetModelConfigs(new[] { "id1", "id2", "id3" });

// 批量获取数据库配置
var dbConfigs = await database.GetDatabaseConfigs(new[] { "id1", "id2" });

核心类

OpenModelingInfo

建模配置信息类。

public class OpenModelingInfo : OpenServiceFetchable
{
    public Task<OpenModelConfig?> GetModelConfig(string modelId);
    public Task<List<OpenModelConfig>> GetModelConfigs(string[] modelIds);
}

OpenDatabaseInfo

数据库配置信息类。

public class OpenDatabaseInfo : OpenServiceFetchable
{
    public Task<OpenDatabaseConfig?> GetDatabaseConfig(string databaseId);
    public Task<List<OpenDatabaseConfig>> GetDatabaseConfigs(string[] databaseIds);
}

依赖项

  • Sup.Configuration.Define - SUP 配置定义
  • Sup.OpenApi.Kernel - 内核组件

技术栈

  • .NET 8.0
  • C# 12

许可证

MIT License

作者

© 2026 nuoyi.cc

链接

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  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 (2)

Showing the top 2 NuGet packages that depend on Sup.OpenApi.Configuration:

Package Downloads
Boss.Common

星桥项目公共组件

Spms.Common

打印管理SDK通用组件

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.10.33 291 10/16/2026
2026.10.32 227 10/8/2026
2026.9.31 4,842 9/3/2026
2026.9.30 261 9/2/2026
2026.8.29 133 8/31/2026
2026.8.28 127 8/31/2026
2026.8.27 131 8/31/2026
2026.8.26 985 8/14/2026
2026.8.25 130 8/13/2026
2026.8.24 134 8/10/2026
2026.7.23 368 7/28/2026
2026.7.22 361 7/8/2026
2026.7.21 141 7/7/2026
2026.7.20 149 7/3/2026
2026.6.19 158 6/25/2026
2026.6.18 151 6/24/2026
2026.6.17 127 6/13/2026
2026.6.16 141 6/13/2026
2026.6.15 142 6/13/2026
2026.6.14 140 6/13/2026
Loading failed