Skip to content

Instantly share code, notes, and snippets.

View JustusGreiberORGADATA's full-sized avatar

Justus Greiber JustusGreiberORGADATA

View GitHub Profile
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using var connection = new SqliteConnection("DataSource=:memory:");
connection.Open();
var options = new DbContextOptionsBuilder<TestContext>()
.UseSqlite(connection)
.LogTo(Console.WriteLine)
.EnableSensitiveDataLogging().Options;