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" />
<PackageReference Include="RT.MesWeb.DataProviders" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=RT.MesWeb.DataProviders&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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且表在MESschema 时,需用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 | Versions 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.
-
net10.0
- DM.DmProvider (>= 8.3.1.47463)
- DM.Microsoft.EntityFrameworkCore (>= 9.0.0.43760)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.15)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 9.0.4)
- Oracle.EntityFrameworkCore (>= 9.23.60)
- Pomelo.EntityFrameworkCore.MySql (>= 9.0.0)
-
net8.0
- DM.DmProvider (>= 8.3.1.47463)
- DM.Microsoft.EntityFrameworkCore (>= 9.0.0.43760)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.15)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 9.0.4)
- Oracle.EntityFrameworkCore (>= 9.23.60)
- Pomelo.EntityFrameworkCore.MySql (>= 9.0.0)
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 |