Back to Yugabyte Db

Build apps using C# drivers and ORMs

docs/content/stable/develop/drivers-orms/csharp/_index.md

2026.1.0.0-b252.6 KB
Original Source

Supported projects

The following projects can be used to implement C# applications using the YugabyteDB YSQL API.

ProjectDocumentation and GuidesLatest Driver VersionSupported YugabyteDB Version
YugabyteDB C# Driver for YSQL [Recommended]Documentation
Reference9.0.2.22.8 and later
PostgreSQL Npgsql DriverDocumentation
Reference6.0.32.6 and later
YugabyteDB C# Driver for YCQLDocumentation3.6.0
ProjectDocumentation and GuidesExample Apps
Entity FrameworkDocumentation
Hello WorldEntity Framework ORM App
DapperHello WorldDapper ORM App

Learn how to establish a connection to a YugabyteDB database and begin basic CRUD operations by referring to Connect an app or Use an ORM.

Prerequisites

To develop C# applications for YugabyteDB, you need the following:

  • .NET SDK

    Install .NET SDK 6.0 or later. To download it for your supported OS, visit Download .NET.

  • Create a C# project

    For ease-of-use, use an integrated development environment (IDE) such as Visual Studio. To download and install Visual Studio, visit the Visual Studio Downloads page.

    • To create a C# project in Visual Studio, select Console Application as template when creating a new project.

    • If you are not using an IDE, use the following dotnet command:

      csharp
      dotnet new console -o new_project_name
      
  • YugabyteDB cluster

    • Create a free cluster on YugabyteDB Aeon. Refer to Use a cloud cluster. Note that YugabyteDB Aeon requires SSL.
    • Alternatively, set up a standalone YugabyteDB cluster by following the steps in Install YugabyteDB.

Next step

Connect an app