Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍👩‍👧‍👧

Philipp Wagner bytefish

👨‍👩‍👧‍👧
View GitHub Profile
@bytefish
bytefish / InsertOrUpdateMeasurementsTests.cs
Created Nov 7, 2021
Bulk Upserts with Npgsql and Postgres Composite Types
View InsertOrUpdateMeasurementsTests.cs
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.