Zongsoft.Data.TDengine 2.9.0

dotnet add package Zongsoft.Data.TDengine --version 2.9.0
                    
NuGet\Install-Package Zongsoft.Data.TDengine -Version 2.9.0
                    
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="Zongsoft.Data.TDengine" Version="2.9.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zongsoft.Data.TDengine" Version="2.9.0" />
                    
Directory.Packages.props
<PackageReference Include="Zongsoft.Data.TDengine" />
                    
Project file
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 Zongsoft.Data.TDengine --version 2.9.0
                    
#r "nuget: Zongsoft.Data.TDengine, 2.9.0"
                    
#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 Zongsoft.Data.TDengine@2.9.0
                    
#: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=Zongsoft.Data.TDengine&version=2.9.0
                    
Install as a Cake Addin
#tool nuget:?package=Zongsoft.Data.TDengine&version=2.9.0
                    
Install as a Cake Tool

Zongsoft.Data.TDengine Data Driver Plugin Library

License NuGet Version NuGet Downloads GitHub Stars

English | 简体中文


Overview

Zongsoft.Data.TDengine is a low-level data engine driver in the Zongsoft open-source framework. It provides access to TDengine and is transparent to upper-layer applications; deploy this plugin library to the application plugin directory to enable it.

When to Use This Driver

Choose this package when a Zongsoft data model is stored in TDengine. The public application contract remains IDataAccess/IDataService<T>; this package translates expressions and mutations into the database dialect and creates connections through TDengine.Connector.

TDengine is a time-series system with native and WebSocket connectivity. Super tables, tags, timestamp precision, protocol selection, and connector/server version compatibility must be treated as part of the data contract.

Installation and Plugin Deployment

dotnet add package Zongsoft.Data.TDengine

Deploy Zongsoft.Data.TDengine.plugin with the assembly. Its manifest registers the connection-settings parser and data driver under the framework workbench. A NuGet reference without the plugin manifest does not activate the driver in a plugin host.

Connection Configuration

<options>
	<option path="/Data">
		<connectionSettings default="Application">
			<connectionSetting connectionSetting.name="Application"
			                   driver="TDengine"
			                   value="Server=127.0.0.1;Port=6030;Database=docs;UserName=docs_app;Password=REPLACE_WITH_TEST_PASSWORD;Protocol=Native" />
		</connectionSettings>
	</option>
</options>

The driver value is case-insensitive but should use the canonical TDengine spelling. The value is parsed by this package's connection settings driver and ultimately passed to TDengine.Connector; consult the provider documentation for supported keywords.

💡 Keep entity mappings, criteria, paging, transactions, and IDataAccess usage in the shared Zongsoft.Data guide. Switching drivers should not require application services to depend on provider connection classes.

The connection string uses this driver's public settings model, which does not necessarily expose every underlying SDK keyword. Examples target local test environments only. Prepare databases, accounts and permissions, and replace explicitly marked test credentials; this is not a server initialization script.

Access Through Application Contracts

The consumer module references Core; the host deploys Data and this driver. After startup, obtain the accessor matching the configured connection name:

using Zongsoft.Data;
using Zongsoft.Services;

var provider = ApplicationContext.Current.Services
	.ResolveRequired<Zongsoft.Services.IServiceProvider<IDataAccess>>();
var data = provider.GetService("Application")
	?? throw new InvalidOperationException("Data accessor not found.");
Console.WriteLine(data.Name);

Obtaining an accessor does not prove query execution succeeded. Follow the real Discussions composition in the Data guide through its module, mapping and services. That walkthrough does not establish Discussions compatibility with this driver: verify database structures, field types and required operations, rather than assuming a driver-name change makes the application portable. Business services use shared contracts instead of constructing database connections.

Runtime Behavior

The driver supplies a provider-specific statement builder/visitor, command parameterization, execution primitives, and an importer. The data engine selects it from the named connection setting. Ambient data transactions are honored where the provider and operation support them.

🚨 Never commit production connection strings. Use deployment-time configuration or a secret provider, grant the database identity only the required permissions, and verify destructive mutations against a disposable database first.

Compatibility and Testing

Database behavior is not completely portable. Verify identifier casing, null and comparison rules, date/time precision, generated values, transaction semantics, and bulk-import constraints on the same server/provider versions used in production. Repository tests require an explicitly configured disposable database and are not ordinary offline unit tests.

Unit Testing

When running unit tests, especially over the Native protocol, ensure that the installed TDengine client matches the server version and edition (Community or Enterprise). Version mismatches can cause connection or protocol compatibility failures. For example, when testing against TDengine TSDB-OSS 3.4.2.2 on Windows x64, install the TDengine TSDB-OSS Client 3.4.2.2 for Windows x64. Other platforms and versions are available from the official download center.

Plugin-Based Integration

Compose this feature through the host; a package reference supplies compile-time APIs, while plugin loading also requires deployed manifests and runtime assets. See the complete plugin workflow.

The manifest adds the driver to /Workbench/Data/Drivers and the connection-settings registry. Configure the exact driver key shown above, deploy the application's mapping, then obtain IDataAccess from the host. Database creation/migration remains an explicit application operation.

Runtime artifact Source of truth
Zongsoft.Data.TDengine Zongsoft.Data.TDengine.plugin
File copying and dependencies Zongsoft.Data.TDengine.deploy

Add this fragment to an existing host .deploy (retain Main and the host’s other base manifests; do not replace the whole file):

[plugins zongsoft data]
nuget:Zongsoft.Data

[plugins zongsoft data tdengine]
nuget:Zongsoft.Data.TDengine

Run dotnet deploy against a test deployment as explained in the workflow, with the host's framework, platform, architecture and, where needed, site. Pin compatible versions in real deployments; application dependencies such as databases, caches or commercial runtimes are still separate prerequisites.

Additional artifacts listed by the deployment manifest include Zongsoft.Data.TDengine.plugin. Retain assemblies, dependencies and satellite resource directories as well. Restart the host after deployment, check plugin loading and service/driver registration, then verify the workflow above; copied files alone do not prove that the feature is active.

Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.9.0 35 9/18/2026
2.8.0 120 7/30/2026
2.7.2 110 7/28/2026
2.7.1 141 4/10/2026
2.7.0 133 3/12/2026
2.6.0 129 2/11/2026
2.5.0 140 1/22/2026
2.4.3 137 1/20/2026
2.3.0 144 1/8/2026
2.2.0 341 11/12/2025
2.1.0 288 6/23/2025
2.0.0 242 2/24/2025
Loading failed