SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class ApplicationDbContext : DbContext
  2.     {
  3.         public ApplicationDbContext(DbContextOptions options) : base(options)
  4.         {
  5.         }
  6.  
  7.         protected override void OnModelCreating(ModelBuilder modelBuilder)
  8.         {
  9.             modelBuilder
  10.                 .ApplyConfiguration(new CustomerConfiguration())
  11.                 .ApplyConfiguration(new CarConfiguration())
  12.                 .ApplyConfiguration(new EngineConfiguration());
  13.         }
  14.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top