Skip to content

Instantly share code, notes, and snippets.

@alexhiggins732
alexhiggins732 / MyDbContext.cs
Created May 28, 2019 21:00 — forked from hikalkan/MyDbContext.cs
How to map a dictionary property of an entity to a string field of a table in Entity Framework Core v2.1+
public class MyDbContext : DbContext
{
public DbSet<User> Users { get; set; }
public MyDbContext(DbContextOptions<MyDbContext> options)
: base(options)
{
}