Created
February 1, 2020 03:15
-
-
Save rebelweb/4685aecbcbf5fa52979934c75a9dcbae to your computer and use it in GitHub Desktop.
Data Converter DbContext
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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