dmdbms.DmProvider
8.3.1.31267
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 2.1
This package targets .NET Core 2.1. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 2.0
This package targets .NET Framework 2.0. The package is compatible with this framework or higher.
dotnet add package dmdbms.DmProvider --version 8.3.1.31267
NuGet\Install-Package dmdbms.DmProvider -Version 8.3.1.31267
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="dmdbms.DmProvider" Version="8.3.1.31267" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="dmdbms.DmProvider" Version="8.3.1.31267" />
<PackageReference Include="dmdbms.DmProvider" />
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 dmdbms.DmProvider --version 8.3.1.31267
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: dmdbms.DmProvider, 8.3.1.31267"
#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 dmdbms.DmProvider@8.3.1.31267
#: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=dmdbms.DmProvider&version=8.3.1.31267
#tool nuget:?package=dmdbms.DmProvider&version=8.3.1.31267
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
提示:此代码仓库不是由达梦公司维护,如果有Pull request,欢迎提交。如果需要技术支持,请联系达梦公司。
DmProvider 
- DmProvider is an ADO.NET data provider for DaMeng(DM).
- 适用于达梦数据库的ADO.NET数据提供程序
How to Use - 使用方法
// set these values correctly for your database server
// 根据实际情况设置参数的值
var builder = new DmConnectionStringBuilder
{
Server = "your-server",
Port = 5236,
Schema = "database-name",
User = "database-user",
Password = "P@ssw0rd!"
};
// open a connection
// 打开连接
using var connection = new DmConnection(builder.ConnectionString);
connection.Open();
// create a DB command and set the SQL statement with parameters
// 创建一个数据库命令对象并设置参数
using var command = connection.CreateCommand();
command.CommandText = @"SELECT * FROM orders WHERE order_id = @OrderId;";
command.Parameters.AddWithValue("@OrderId", orderId);
// execute the command and read the results
// 执行SQL命令并读取结果
using var reader = command.ExecuteReader();
while (reader.Read())
{
var id = reader.GetInt32("order_id");
var date = reader.GetDateTime("order_date");
// ...
}
Main Types - 主要类型
The main types provided by this library are: 此程序库提供了这些主要类型:
DmConnection
(implementation ofDbConnection
)DmCommand
(implementation ofDbCommand
)DmDataReader
(implementation ofDbDataReader
)DmBulkCopy
DmConnectionStringBuilder
DmConnectorFactory
DmDataAdapter
(implementation ofDbDataAdapter
)DmException
DmTransaction
(implementation ofDbTransaction
)
Related Packages - 相关包
- Entity Framework Core: dmdbms.Microsoft.EntityFrameworkCore.Dm
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. 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 is compatible. 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 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net20 is compatible. net35 was computed. net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.1
- System.Text.Encoding.CodePages (>= 4.7.0)
-
.NETCoreApp 3.1
- System.Text.Encoding.CodePages (>= 5.0.0)
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETStandard 2.0
- System.Text.Encoding.CodePages (>= 5.0.0)
-
net5.0
- System.Text.Encoding.CodePages (>= 5.0.0)
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (12)
Showing the top 5 NuGet packages that depend on dmdbms.DmProvider:
Package | Downloads |
---|---|
DYKJ.Framework
DYKJ.Framework |
|
HanaTech.Framework.Appsettings.Init
Package Description |
|
Datory
基于 Dapper 及 SqlKata 的通用数据库操作库,支持MySQL、SQLServer、PostgreSql、达梦、人大金仓以及 Sqlite 等多种数据库类型。 |
|
dmdbms.Microsoft.EntityFrameworkCore.Dm
DaMeng database provider for Entity Framework Core. 适用于达梦数据库的Entity Framework Core提供程序. |
|
XCode.DaMeng
引入DaMeng数据库驱动包 |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on dmdbms.DmProvider:
Repository | Stars |
---|---|
DotNetNext/SqlSugar
.Net aot ORM SqlServer ORM Mongodb ORM MySql 瀚高 Postgresql ORM DB2 Hana 高斯 Duckdb C# VB.NET Sqlite ORM Oracle ORM Mysql Orm 虚谷数据库 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET9 ORM .NET8 ORM ClickHouse ORM QuestDb ,TDengine ORM,OceanBase ORM,GaussDB ORM,Tidb ORM Object/Relational Mapping
|
Version | Downloads | Last Updated |
---|---|---|
8.3.1.31267 | 1,964 | 1/8/2025 |
1.1.0.20739 | 10,384 | 1/26/2024 |
1.1.0.16649 | 41,835 | 5/18/2023 |