虚谷数据库 C# (.NET) 驱动开发

Develop XuguDB C# (.NET) drivers using ADO.NET interfaces across Windows and Linux.

4|4|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/kourou25/xugudb-dev-skills --skill c-net
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 虚谷数据库 C# (.NET) 驱动开发
Source: https://github.com/kourou25/xugudb-dev-skills/tree/main/skills/xugudb-csharp
Command: npx skills add https://github.com/kourou25/xugudb-dev-skills --skill c-net

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

XuguDB C# (.NET) 驱动开发完整指南,帮助开发者在 Windows/Linux 环境中安装驱动、使用 ADO.NET 风格的接口、执行参数化查询、管理事务、调用存储过程、处理大对象、以及 DataSet 的使用,并实现数据类型映射。

Core Features & Use Cases

  • 驱动安装:XuguClient.dll 与原生库 xugusql.dll(Windows)/ libxugusql.so(Linux)的安装与部署。
  • ADO.NET 接口:XGConnection、XGCommand、XGDataReader、XGDataAdapter 等标准 API 的使用。
  • 功能覆盖:参数化查询、事务控制、存储过程调用、大对象处理、DataSet 操作、数据类型映射。
  • 场景示例:在生产 .NET 应用中通过驱动实现对虚谷数据库的高效数据访问与管理。

Quick Start

在 Windows 或 Linux 上安装 XuguClient 驱动,在项目中引用 XGConnection/XGCommand 等 API,并连接到 XuguDB 实例以开始开发。

Frequently Asked Questions about 虚谷数据库 C# (.NET) 驱动开发

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a .NET application to XuguDB using ADO.NET?

Use the XGConnection object from the XuguClient driver to establish an ADO.NET connection to your XuguDB instance. It provides a standard ADO.NET interface for database access.

How do I install the XuguDB C# driver on Linux and Windows?

Install the XuguDB C# driver by deploying the managed XuguClient.dll alongside the native library xugusql.dll on Windows or libxugusql.so on Linux. This setup ensures the driver functions correctly across both operating systems.

Can I use stored procedures and transactions with the XuguDB .NET driver?

Yes, the XuguDB .NET driver fully supports stored procedures and transaction control. You use the XGCommand object to execute stored procedure calls and manage transaction commits or rollbacks.

What ADO.NET interfaces are available for XuguDB data access?

Available ADO.NET interfaces for XuguDB include XGConnection, XGCommand, XGDataReader, and XGDataAdapter. These standard APIs enable parameterized queries, DataSet operations, and large object handling in .NET.

Does the XuguDB C# driver support parameterized queries and DataSet operations?

Yes, the XuguDB C# driver supports parameterized queries and DataSet operations via XGCommand and XGDataAdapter. This allows efficient data retrieval, mapping, and secure data modification.

How are XuguDB data types mapped in C# .NET applications?

The XuguDB C# driver handles data type mapping natively between XuguDB columns and .NET types. This ensures accurate data conversion when retrieving results through XGDataReader or populating a DataSet.