Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ApplicationDbContext : DbContext
- {
- public ApplicationDbContext(DbContextOptions options) : base(options)
- {
- }
- protected override void OnModelCreating(ModelBuilder modelBuilder)
- {
- modelBuilder
- .ApplyConfiguration(new CustomerConfiguration())
- .ApplyConfiguration(new CarConfiguration())
- .ApplyConfiguration(new EngineConfiguration());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement