## About
MySqlConnector is an [ADO.NET](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/) data provider for [MySQL](https://www.mysql.com/), [MariaDB](https://mariadb.org/), [Amazon Aurora](https://aws.amazon.com/rds/aurora/), [Azure Database for MySQL](https://azure.microsoft.com/en-us/services/mysql/) and other MySQL-compatible databases.
More documentation is available at the [MySqlConnector website](https://mysqlconnector.net/).
## How to Use
```csharp
// set these values correctly for your database server
var builder = new MySqlConnectionStringBuilder
{
Server = "your-server",
UserID = "database-user",
Password = "P@ssw0rd!",
Database = "database-name",
};
// open a connection asynchronously
using var connection = new MySqlConnection(builder.ConnectionString);
await connection.OpenAsync();
// 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
using var reader = await command.ExecuteReaderAsync();
while (reader.Read())
{
var id = reader.GetInt32("order_id");
var date = reader.GetDateTime("order_date");
// ...
}
```
## Key Features
* Full support for async I/O
* High performance
* Supports .NET Framework, .NET Core, and .NET 5.0+
## Main Types
The main types provided by this library are:
* `MySqlConnection` (implementation of `DbConnection`)
* `MySqlCommand` (implementation of `DbCommand`)
* `MySqlDataReader` (implementation of `DbDataReader`)
* `MySqlBulkCopy`
* `MySqlBulkLoader`
* `MySqlConnectionStringBuilder`
* `MySqlConnectorFactory`
* `MySqlDataAdapter`
* `MySqlException`
* `MySqlTransaction` (implementation of `DbTransaction`)
## Related Packages
* Entity Framework Core: [Pomelo.EntityFrameworkCore.MySql](https://www.nuget.org/packages/Pomelo.EntityFrameworkCore.MySql/)
* Logging: [log4net](https://www.nuget.org/packages/MySqlConnector.Logging.log4net/), [Microsoft.Extensions.Logging](https://www.nuget.org/packages/MySqlConnector.Logging.Microsoft.Extensions.Logging/), [NLog](https://www.nuget.org/packages/MySqlConnector.Logging.NLog/), [Serilog](https://www.nuget.org/packages/MySqlConnector.Logging.Serilog/)
## Feedback
MySqlConnector is released as open source under the [MIT license](https://github.com/mysql-net/MySqlConnector/blob/master/LICENSE). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/mysql-net/MySqlConnector).
没有合适的资源?快使用搜索试试~ 我知道了~
C#上位机开发-串口通信,读取并处理数据
共768个文件
dll:245个
xml:174个
_:77个
需积分: 0 3 下载量 121 浏览量
2024-03-13
16:28:47
上传
评论
收藏 53.96MB RAR 举报
温馨提示
将串口传输的16进制数据转换成需要的数据的上位机,并且显示数据 适合需要读取串口数据的项目
资源推荐
资源详情
资源评论
收起资源包目录
C#上位机开发-串口通信,读取并处理数据 (768个子文件)
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
_._ 0B
SerialComm.application 2KB
SerialComm.application 2KB
SerialComm.application 2KB
SerialComm.application 2KB
SerialComm.vshost.application 2KB
SerialComm.vshost.application 1KB
SerialComm.csprojResolveAssemblyReference.cache 121KB
ResolveAssemblyReference.cache 57KB
SerialComm.csproj.AssemblyReference.cache 44KB
SerialComm.csproj.AssemblyReference.cache 20KB
DesignTimeResolveAssemblyReferencesInput.cache 12KB
DesignTimeResolveAssemblyReferences.cache 366B
SerialComm.csproj.GenerateResource.cache 126B
SerialComm.csproj.GenerateResource.cache 126B
SerialComm.csproj.CoreCompileInputs.cache 42B
SerialComm.csproj.CoreCompileInputs.cache 42B
ceshi 0B
app.config 3KB
SerialComm.exe.config 3KB
packages.config 2KB
SerialComm.exe.config 1KB
app.config 74B
SerialComm.vshost.exe.config 74B
共 768 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
qq_53964352
- 粉丝: 7
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功