Last active
September 28, 2017 10:34
-
-
Save ksysiekj/a268e833a7e5ba7355aa9f6692b4ca9e to your computer and use it in GitHub Desktop.
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
public class AdventureWorksDbContext : DbContext | |
{ | |
public AdventureWorksDbContext(DbContextOptions options) : base(options) | |
{ | |
} | |
protected override void OnModelCreating(ModelBuilder modelBuilder) | |
{ | |
modelBuilder.UseEntityTypeConfiguration(); | |
base.OnModelCreating(modelBuilder); | |
} | |
public DbSet<Shift> Shifts { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment