Created
September 28, 2017 10:36
-
-
Save ksysiekj/33e560c48e4690cb1450c3dacc13704e 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 AdventureWorks2014Context : DbContext | |
{ | |
public AdventureWorks2014Context() | |
: base("Name=AdventureWorks2014Context") | |
{ | |
} | |
protected override void OnModelCreating(DbModelBuilder modelBuilder) | |
{ | |
modelBuilder.Configurations.Add(new ShiftMap()); | |
} | |
public DbSet<Shift> Shifts { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment