--- title: 'PostgreSQL C#' page_title: 'PostgreSQL C#' page_description: 'This page shows how to manipulate data in a PostgreSQL database from C# applications using ADO.NET.' prev_url: 'https://www.postgresqltutorial.com/postgresql-csharp/' ogImage: '' updatedOn: '2024-05-21T12:42:32+00:00' enableTableOfContents: true previousLink: title: 'PostgreSQL JDBC: Managing Transactions' slug: 'postgresql-jdbc/transaction' nextLink: title: 'PostgreSQL C#: Connecting the PostgreSQL Database' slug: 'postgresql-csharp/postgresql-csharp-connect' --- This page shows how to manipulate data in a PostgreSQL database from C\# applications using ADO.NET. ## Section 1\. Getting Started This section helps you get started by showing you how to install the PostgreSQL driver for ADO.NET, connect to a PostgreSQL database, and create new tables - [Connecting to a PostgreSQL database](postgresql-csharp/postgresql-csharp-connect) – Learn how to install a Npgsql .NET Data provider and connect to a PostgreSQL database from a C\# program. - [Creating new tables](postgresql-csharp/postgresql-csharp-create-table) – Show how to create new tables in a PostgreSQL database from a C\# program. ## Section 2\. Performing Common Database Operations This section shows you how to perform common database operations such as inserting, updating, deleting, and retrieving data. - [Inserting data into a table](postgresql-csharp/postgresql-csharp-insert) – Learn how to insert a new row into a table in a PostgreSQL database from a C\# program. - [Import a CSV file into a table](postgresql-csharp/postgresql-csharp-import-csv-file) – Show you how to load data from a CSV file into a table in a PostgreSQL database using ADO.NET. - [Updating data](postgresql-csharp/postgresql-csharp-update) – Show you how to update data in a table in a PostgreSQL database from a C\# program. - [Deleting data](postgresql-csharp/postgresql-csharp-delete) – Discuss how to delete data from a table in a PostgreSQL database from a C\# program. - [Querying data](postgresql-csharp/postgresql-csharp-select) – Show you how to query one or more rows from a table in a PostgreSQL database from a C\# program. ## Section 3\. Transactions This section guides you on how to perform a PostgreSQL database transaction in C\# program - [Transaction](postgresql-csharp/postgresql-csharp-transaction) – Learn to perform a database transaction in PostgreSQL database using C\#. ## Section 4\. Calling PostgreSQL functions and stored procedure This section shows you how to call PostgreSQL functions and stored procedures from C\# programs. - [Calling a PostgreSQL Function](postgresql-csharp/postgresql-csharp-call-postgresql-function) – Show you how to call a PostgreSQL function from a C\# program. - [Calling a Stored Procedure](postgresql-csharp/postgresql-csharp-call-a-stored-procedure) – Guide you on calling a stored procedure using C\#.