Skip to content

Instantly share code, notes, and snippets.

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