dmdbms.DmProvider
1.1.0.20739
dotnet add package dmdbms.DmProvider --version 1.1.0.20739
NuGet\Install-Package dmdbms.DmProvider -Version 1.1.0.20739
<PackageReference Include="dmdbms.DmProvider" Version="1.1.0.20739" />
paket add dmdbms.DmProvider --version 1.1.0.20739
#r "nuget: dmdbms.DmProvider, 1.1.0.20739"
// Install dmdbms.DmProvider as a Cake Addin #addin nuget:?package=dmdbms.DmProvider&version=1.1.0.20739 // Install dmdbms.DmProvider as a Cake Tool #tool nuget:?package=dmdbms.DmProvider&version=1.1.0.20739
提示:此代码仓库不是由达梦公司维护,如果有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 was computed. 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 was computed. 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. |
.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 | 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. |
-
.NETCoreApp 2.1
- System.Text.Encoding.CodePages (>= 4.7.0)
-
.NETCoreApp 3.1
- skyapm.agent.aspnetcore (>= 2.1.0)
- 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.
NuGet packages (13)
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提供程序. |
|
CYQ.Data.DaMeng
.NET's best ORM data layer framework, one of the wood, low-key continuous update for 15 years! In the tank. Net Framework 2.0+, supported. Net Core 2.1+ supports a variety of databases, built-in database read/write separation, distributed cache, distributed locks, etc(.Net 最好用的ORM数据层框架,木有之一,低调持续更新15年!支持.Net Framework 2.0+,支持.Net Core 2.1+,支持多种数据库,自带数据库读写分离,分布式缓存,分布式锁等,开源地址:https://github.com/cyq1162/cyqdata) |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on dmdbms.DmProvider:
Repository | Stars |
---|---|
DotNetNext/SqlSugar
.Net aot ORM Fastest ORM Simple Easy VB.NET Sqlite orm Oracle ORM Mysql Orm 虚谷数据库 postgresql ORm SqlServer oRm 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET5 ORM .NET6 ORM ClickHouse orm QuestDb ,TDengine ORM,OceanBase orm,GaussDB orm ,Tidb orm Object/Relational Mapping
|
Version | Downloads | Last updated |
---|---|---|
1.1.0.20739 | 4,762 | 1/26/2024 |
1.1.0.16649 | 31,119 | 5/18/2023 |