Senparc.Xncf.Tenant
0.15.3-preview5
Prefix Reserved
dotnet add package Senparc.Xncf.Tenant --version 0.15.3-preview5
NuGet\Install-Package Senparc.Xncf.Tenant -Version 0.15.3-preview5
<PackageReference Include="Senparc.Xncf.Tenant" Version="0.15.3-preview5" />
<PackageVersion Include="Senparc.Xncf.Tenant" Version="0.15.3-preview5" />
<PackageReference Include="Senparc.Xncf.Tenant" />
paket add Senparc.Xncf.Tenant --version 0.15.3-preview5
#r "nuget: Senparc.Xncf.Tenant, 0.15.3-preview5"
#:package Senparc.Xncf.Tenant@0.15.3-preview5
#addin nuget:?package=Senparc.Xncf.Tenant&version=0.15.3-preview5&prerelease
#tool nuget:?package=Senparc.Xncf.Tenant&version=0.15.3-preview5&prerelease
Senparc.Xncf.Tenant
Senparc.Xncf.Tenant provides NCF multi-tenant persistence, request resolution, caching, and service integration.
Features
- Persists
TenantInforecords through a tenant database context and repository. - Resolves the current request tenant through middleware.
- Provides
TenantInfoService, tenant DTO mapping, and cached full-tenant information. - Supports provider-specific contexts and NCF multi-database migrations.
Installation
<PackageReference Include="Senparc.Xncf.Tenant" Version="0.26.0-preview3" />
Key API
Register.AddMultiTenant(...)registers tenant services and middleware dependencies.TenantMiddlewareresolves tenant context for an HTTP request.TenantInfoService.GetRequestTenantInfo(...)andSetTenantInfo(...)read/update tenant information.TenantInfoRepositoryandFullTenantInfoCacheprovide persistence and cached lookup.SenparcEntitiesMultiTenantis the multi-tenant database context.
Choose and document the tenant-resolution source, fail closed when a tenant cannot be resolved, and ensure every business query applies the resolved tenant boundary.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Senparc.CO2NET.WebApi (>= 2.1.9-preview)
- Senparc.Ncf.AreaBase (>= 0.23.1-preview5)
- Senparc.Ncf.DatabasePlant (>= 0.21.5-preview5)
- Senparc.Ncf.Repository (>= 0.20.5-preview5)
- Senparc.Ncf.XncfBase (>= 0.24.0-preview5)
- Senparc.Xncf.Tenant.Interface (>= 0.10.5-preview5)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Senparc.Xncf.Tenant:
| Package | Downloads |
|---|---|
|
Senparc.Xncf.PromptRange
你的提示词(Prompt)训练场 |
|
|
Senparc.Xncf.AIAgentsHub
人工智能代理枢纽模块 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.15.3-preview5 | 61 | 8/3/2026 |
| 0.15.2-preview4 | 75 | 7/31/2026 |
| 0.15.1-preview3 | 87 | 7/28/2026 |
| 0.15.0-preview2 | 95 | 7/26/2026 |
| 0.14.1-preview1 | 199 | 6/17/2026 |
| 0.13.16.1-preview | 118 | 5/9/2026 |
| 0.13.15-preview.1 | 113 | 2/13/2026 |
| 0.13.14.4-preview | 135 | 12/28/2025 |
| 0.13.14.2-preview | 107 | 12/28/2025 |
| 0.13.14-preview.1 | 212 | 11/1/2025 |
| 0.13.12.6-preview1 | 233 | 8/20/2025 |
| 0.13.12.4-preview1 | 221 | 8/18/2025 |
| 0.13.12.3-preview1 | 247 | 7/14/2025 |
| 0.13.12.2-preview1 | 269 | 7/2/2025 |
| 0.13.12.1-preview1 | 218 | 7/2/2025 |
| 0.13.12-preview1 | 221 | 6/24/2025 |
| 0.13.11.1-preview1 | 218 | 6/6/2025 |
| 0.13.11-preview1 | 254 | 5/18/2025 |
| 0.13.10-preview1 | 211 | 4/29/2025 |
| 0.13.2-preview | 106 | 6/16/2026 |
v0.1.0 创世
v0.2.2 添加 services.AddMultiTenant(); 等注册过程到此模块
v0.3.3.1 添加 Oracle 数据库迁移代码
v0.6.0 完善租户启用过滤机制
[2024-09-10] v0.11.4-preview1 升级缓存基础库
[2024-10-09] v0.11.6-preview1 升级基础库
[2024-10-16] v0.11.7-preview1 添加 Service 对 PagedList 对象快速 Mapping 到 DTO 对象的方法
[2024-11-08] v0.11.9-preview1 升级 Senparc.AI
[2024-11-15] v0.12.0-preview1 使用新版本 AutoGen,升级 AgentsManager;解决 AgentsManager 中状态获取的异常
[2024-11-21] v0.13.2-preview1 更新 CO2NET 及缓存基础库
[2024-11-28] v0.13.3-preview1 update CO2NET, use new SenparcSetting with UseLowerCaseApiName property
[2024-12-27] v0.13.4-preview1 Add exception log for UseXncfModules() auto progress
[2025-01-25] v0.13.8-preview1 Update Agents functions, support for function calling
[2025-04-29] v0.13.10-preview1 Update CO2NET and AIKernel
[2025-05-18] v0.13.11-preview1 Update Installation
[2025-06-20] v0.13.12-preview1 Add MCP functions in XncfRegisterBase class
[2025-11-01] update basic libraries, including Senparc.AI
[2026-07-17] v0.15.0-preview2 为 Tenant 模块接入统一资源本地化并优化功能文案
1、接入统一资源本地化机制,支持模块功能文案按当前文化动态显示
2、统一模块注册信息、菜单名称与功能描述的本地化输出
3、补充并统一多语言资源键及资源文件
[2026-07-29] v0.15.1-preview3 Dependency update from Senparc.Ncf.AreaBase to 0.22.0-preview3
[2026-07-31] v0.15.2-preview4 升级 CO2NET WebApi 兼容依赖
1、升级 Senparc.CO2NET.WebApi 至 2.1.9-preview 以适配 CO2NET 4.2.0
[2026-08-04] v0.15.3-preview5 Dependency updates from upstream projects
1、Dependency update from Senparc.Ncf.AreaBase to 0.23.1-preview5
2、Dependency update from Senparc.Ncf.DatabasePlant to 0.21.5-preview5
3、Dependency update from Senparc.Ncf.Repository to 0.20.5-preview5
4、Dependency update from Senparc.Ncf.XncfBase to 0.24.0-preview5
5、Dependency update from Senparc.Xncf.Tenant.Interface to 0.10.5-preview5