Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created October 1, 2017 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonysneed/4d4a0bea3f4c4a1b2f87fe650eb03508 to your computer and use it in GitHub Desktop.
Save tonysneed/4d4a0bea3f4c4a1b2f87fe650eb03508 to your computer and use it in GitHub Desktop.
public class NorthwindSlimContext : DbContext
{
public NorthwindSlimContext(DbContextOptions<NorthwindSlimContext> options) : base(options) { }
public DbSet<Category> Categories { get; set; }
public DbSet<Customer> Customers { get; set; }
public DbSet<Order> Orders { get; set; }
public DbSet<OrderDetail> OrderDetails { get; set; }
public DbSet<Product> Products { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment