Last active
August 14, 2019 18:19
-
-
Save GeradeDev/30ea70b2d9fe095533a818bde61ada93 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 OrderingDbContext : DbContext | |
{ | |
public DbSet<Order> Order { get; set; } | |
public DbSet<LineItem> LineItem { get; set; } | |
public OrderingDbContext(DbContextOptions<OrderingDbContext> options) : base(options) | |
{ | |
} | |
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) | |
{ | |
optionsBuilder.UseLazyLoadingProxies(); | |
} | |
protected override void OnModelCreating(ModelBuilder builder) | |
{ | |
base.OnModelCreating(builder); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment