About 1,590,000 results
Open links in new tab
  1. Insert data into Npgsql/Postgresql database with C# windows …

    Apr 20, 2022 · sql = @"select * from u_insert(:_username,:_password)"; cmd = new NpgsqlCommand(sql, conn); cmd.Parameters.AddWithValue("_username", txtEmail.Text); cmd.Parameters.AddWithValue("_password", txtPswrd.Text); if ((int)cmd.ExecuteScalar() == 1) …

  2. PostgreSQL C#: Insert - PostgreSQL Tutorial

    May 21, 2024 · How to insert data into PostgreSQL database using C#. To insert a new row into a table in a PostgreSQL database from a C# program, you follow these steps: First, construct an INSERT statement: var sql = "INSERT INTO ..."; In the SQL statement, you can have one or more parameters in the format @parameter. When you execute it, you can bind values ...

  3. C# and PostgreSQL INSERT INTO - Stack Overflow

    Feb 24, 2012 · string insertQuery = "INSERT INTO npdata VALUES (@key, @ndata)"; NpAdapter.InsertCommand = new NpgsqlCommand(insertQuery, conn); NpParam = NpAdapter.InsertCommand.Parameters.Add("@key", NpgsqlTypes.NpgsqlDbType.Text); NpParam.SourceColumn = "key"; NpParam.SourceVersion = DataRowVersion.Current; NpParam = NpAdapter.InsertCommand.Parameters.Add ...

  4. Using Postgres in C# with the standard data provider (Npgsql)

    Feb 6, 2023 · You’ll see how to interact between Postgres and C# using the standard data provider library Npgsql, use it with Dapper, and even with Entity Framework. We’ll go over the basic operations like creating a table, inserting rows, deleting, and updating records using all of these frameworks.

  5. Bulk C# datatable to postgresql table - Stack Overflow

    Jul 29, 2016 · PostgreSQL definitely does have a bulk copy (it's actually called copy), and it has a nice wrapper for .NET. If you are loading, you want to use the NpgsqlCopyIn, and if you are extracting data you can use NpgsqlCopyOut.

  6. PostgreSQL CRUD Tutorials in C#: A Step-by-Step Guide

    Oct 4, 2023 · In this tutorial, we will explore the basics of performing CRUD (Create, Read, Update, Delete) operations in PostgreSQL using C#. We’ll cover the following steps: Setting Up Your Environment: Installing PostgreSQL. Setting up your C# development environment. Connecting to PostgreSQL: Creating a connection to your PostgreSQL server. Creating a ...

  7. PostgreSQL C#: Insert - neon.rest

    In this tutorial, you will learn how to insert data into a table in PostgreSQL Database from a C# program.

  8. PostgreSQL C#

    May 21, 2024 · 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.

  9. CRUD Operations in PostgreSQL Database Using ASP.Net With C# - C#

    This article shows how to do the CRUD operations in a PostgreSQL database using ASP.Net with C#.

  10. how to insert postgresql table using C# dataTable & postgresql

    Feb 4, 2022 · I want to insert into postgresql(12.9) table using C# datatable object in winform. DataTable object I want to use a function like this. Is there a way to resolve a C# DataTable object to STDI...

Refresh