dmdbms.DmProvider 1.1.3

.NET 6.0
dotnet add package dmdbms.DmProvider --version 1.1.3
NuGet\Install-Package dmdbms.DmProvider -Version 1.1.3
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="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add dmdbms.DmProvider --version 1.1.3
#r "nuget: dmdbms.DmProvider, 1.1.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install dmdbms.DmProvider as a Cake Addin
#addin nuget:?package=dmdbms.DmProvider&version=1.1.3

// Install dmdbms.DmProvider as a Cake Tool
#tool nuget:?package=dmdbms.DmProvider&version=1.1.3

DmProvider NuGet Version

  • 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 of DbConnection)
  • DmCommand (implementation of DbCommand)
  • DmDataReader (implementation of DbDataReader)
  • DmBulkCopy
  • DmConnectionStringBuilder
  • DmConnectorFactory
  • DmDataAdapter (implementation of DbDataAdapter)
  • DmException
  • DmTransaction (implementation of DbTransaction)
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on dmdbms.DmProvider:

Package Downloads
dmdbms.Microsoft.EntityFrameworkCore.Dm

DaMeng database provider for Entity Framework Core. 适用于达梦数据库的Entity Framework Core提供程序.

dmdbms.DmDialect

DmDialect is a NHibernate driver for DaMeng.适用于达梦数据库的NHibernate驱动.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.3 4,338 3/3/2022
1.1.2 254 3/3/2022