Skip to content

Instantly share code, notes, and snippets.

View ErikEJ's full-sized avatar

Erik Ejlskov Jensen ErikEJ

View GitHub Profile
@divega
divega / MyContext.cs
Last active May 18, 2020 04:35
Simple builder class for creating TVPs that work in .NET Core 1.0
using Microsoft.EntityFrameworkCore;
namespace TvpSampleApp
{
public class MyContext : DbContext
{
public DbSet<Person> People { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{