Skip to content

Instantly share code, notes, and snippets.

View lahma's full-sized avatar

Marko Lahma lahma

View GitHub Profile
@lahma
lahma / npgsql.cs
Last active October 26, 2018 06:46
Npgsql 3.0 with Quartz.NET 2.x - programmatic provider registration
// reference Npgsql NuGet package v3 in project
using Npgsql;
using NpgsqlTypes;
// register provider with name Npgsql-30, Quartz V3 has this OOTB
// could also just do a assembly binding redirect
DbProvider.RegisterDbMetadata("Npgsql-30", new DbMetadata
{