Skip to content

Instantly share code, notes, and snippets.

@ksysiekj
Created September 28, 2017 10:36
Show Gist options
  • Save ksysiekj/33e560c48e4690cb1450c3dacc13704e to your computer and use it in GitHub Desktop.
Save ksysiekj/33e560c48e4690cb1450c3dacc13704e to your computer and use it in GitHub Desktop.
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