Skip to content

Instantly share code, notes, and snippets.

@bytefish
bytefish / InsertOrUpdateMeasurementsTests.cs
Created November 7, 2021 14:22
Bulk Upserts with Npgsql and Postgres Composite Types
using Npgsql;
using NUnit.Framework;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace NpgsqlTypeMappings.Example
{
/// <summary>
/// Maps to the Postgres "measurement_type" type.