Skip to content

Instantly share code, notes, and snippets.

@rebelweb
Created February 1, 2020 03:15
Show Gist options
  • Save rebelweb/4685aecbcbf5fa52979934c75a9dcbae to your computer and use it in GitHub Desktop.
Save rebelweb/4685aecbcbf5fa52979934c75a9dcbae to your computer and use it in GitHub Desktop.
Data Converter DbContext
using Microsoft.EntityFrameworkCore;
namespace DataConverter
{
public class DataConverterContext : DbContext
{
public DbSet<User> Users { get; set; }
public DataConverterContext(DbContextOptions opts) : base(opts) { }
protected override void OnModelCreating(ModelBuilder builder)
{
builder.ApplyConfiguration(new UserConfiguration());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment