RT.MesWeb.DataProviders 1.2.0

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

DataProviders 使用说明

多数据库 provider 与序列号生成的公共抽象,供 Authentication / Audit 等项目复用。

安装

dotnet add package RT.MesWeb.DataProviders

目标框架:net8.0 / net10.0

内容

  • DatabaseType:数据库类型枚举(SqlServer / Oracle / DM / MySql / PostgreSql)。配置绑定大小写不敏感,非法值启动即报错。
  • DbProviderHelper:集中处理五种 provider 的连接配置与告警屏蔽。
  • ISequenceProvider + 五种实现 + SequenceProviderFactory:跨数据库序列号生成。

数据库序列要求

  • SQL Server:需包含 [MES].[aic_sp_get_next_sequence_value](单号)、[MES].[aic_sp_get_next_sequence_values](GetNextValues 批量取号,参数 @seqName / @total / @curval OUTPUT)两个存储过程与 Sequence 对象。
  • Oracle:需包含对应 Sequence 对象。
  • DM:需包含对应 Sequence 对象(语法同 Oracle)。
  • PostgreSQL:需包含对应 Sequence 对象,取号用 nextval('"schema"."序列名"')(provider 自动加双引号保留大小写,schema 取自实体 [Table(Schema = "...")],与表同一 schema,不依赖 search_path)。序列名区分大小写,需与 GetSequenceNextValue 传入的名称一致(如名称 AUTH_SEQ_NO 且表在 MES schema 时,需用 CREATE SEQUENCE "MES"."AUTH_SEQ_NO" 建立)。
  • MySQL:无原生序列,需建序列表 sequence(列 NAME / CURRENT_VALUE / INCREMENT,主键 NAME)、函数 CurrVal / NextVal / SetVal,以及存储过程 aic_sp_get_next_sequence_value(取号走 CALL aic_sp_get_next_sequence_value(@s, @curval))。
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 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. 
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 RT.MesWeb.DataProviders:

Package Downloads
RT.MesWeb.Authentication

Authentication server for mes system

RT.MesWeb.Audit

Audit support for mes system

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 154 11/2/2026