NetPro.Tdengine
6.0.5-beta.1
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
This is a prerelease version of NetPro.Tdengine.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NetPro.Tdengine --version 6.0.5-beta.1
NuGet\Install-Package NetPro.Tdengine -Version 6.0.5-beta.1
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="NetPro.Tdengine" Version="6.0.5-beta.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetPro.Tdengine --version 6.0.5-beta.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetPro.Tdengine, 6.0.5-beta.1"
#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.
// Install NetPro.Tdengine as a Cake Addin #addin nuget:?package=NetPro.Tdengine&version=6.0.5-beta.1&prerelease // Install NetPro.Tdengine as a Cake Tool #tool nuget:?package=NetPro.Tdengine&version=6.0.5-beta.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NetPro.Tdengine使用
对涛思数据库连接对象的简易封装,使用单例TaosConnection对象
使用
appsetting.json
"TdengineOption": {
"ConnectionString": [
{
"Key": "taos1", //连接串key别名,唯一
"Value": "Data Source=taos;DataBase=db_20220120141621;Username=root;Password=taosdata;Port=6030" //别名key对应的连接串
}
]
},
启用服务
没有基于NetPro.Web.Api 的使用场景,必须手动进行初始化,如下:
IConfiguration Configuration;
public void ConfigureServices(IServiceCollection services)
{
services.AddTaos(new TaosOption(configuration));
}
基于NetPro.Web.Api的使用,只需要添加引用后配置以上appsetting.josn配置TaosOption节点即可
使用说明
public class TaosService: ITaosService
{
private readonly IdleBus<TaosConnection> _taosdbMulti;
public TaosService(IdleBus<TaosConnection> taosdbMulti)
{
_taosdbMulti = taosdbMulti;
}
/// <summary>
/// 执行Sql
/// </summary>
public void Executesql(string sql)
{
var taos= _taosdbMulti.Get("taos1");
var command= taos.CreateCommand(@"INSERT INTO data_history_67
USING datas TAGS (mongo, 67)
values ( 1608173534840 2 false 'Channel1.窑.烟囱温度' '烟囱温度' '122.00' );");
command.ExecuteReader();
}
}
更新中...
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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. 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. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- IdleBus (>= 1.5.2)
- Maikebing.Data.Taos (>= 2.0.357)
- NetPro.Startup (>= 6.0.5-beta.1)
-
net6.0
- IdleBus (>= 1.5.2)
- Maikebing.Data.Taos (>= 2.0.357)
- NetPro.Startup (>= 6.0.5-beta.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.0.16 | 190 | 7/24/2023 |
6.0.15 | 417 | 7/19/2022 |
6.0.14 | 430 | 7/10/2022 |
6.0.13 | 414 | 6/15/2022 |
6.0.12 | 410 | 6/15/2022 |
6.0.11 | 411 | 6/15/2022 |
6.0.10 | 430 | 6/11/2022 |
6.0.9 | 439 | 6/8/2022 |
6.0.8 | 416 | 5/26/2022 |
6.0.8-beta.3 | 124 | 5/24/2022 |
6.0.8-beta.2 | 120 | 5/24/2022 |
6.0.7 | 424 | 5/18/2022 |
6.0.6 | 437 | 4/28/2022 |
6.0.5 | 455 | 3/30/2022 |
6.0.5-beta.20 | 122 | 4/27/2022 |
6.0.5-beta.19 | 126 | 4/25/2022 |
6.0.5-beta.18 | 124 | 4/22/2022 |
6.0.5-beta.17 | 123 | 4/16/2022 |
6.0.5-beta.16 | 120 | 4/8/2022 |
6.0.5-beta.15 | 130 | 4/8/2022 |
6.0.5-beta.14 | 135 | 4/7/2022 |
6.0.5-beta.13 | 130 | 4/7/2022 |
6.0.5-beta.12 | 128 | 4/6/2022 |
6.0.5-beta.11 | 130 | 4/6/2022 |
6.0.5-beta.10 | 135 | 3/31/2022 |
6.0.5-beta.9 | 137 | 3/26/2022 |
6.0.5-beta.8 | 132 | 3/22/2022 |
6.0.5-beta.7 | 127 | 3/21/2022 |
6.0.5-beta.6 | 131 | 3/14/2022 |
6.0.5-beta.5 | 131 | 3/2/2022 |
6.0.5-beta.4 | 127 | 2/22/2022 |
6.0.5-beta.3 | 126 | 2/18/2022 |
6.0.5-beta.2 | 125 | 2/18/2022 |
6.0.5-beta.1 | 136 | 2/16/2022 |