title: Entities Framework 4 Code First: Large model
body: <p>Has anyone advice when working with large database models when using EF4 code first? Entity sets are added to the database context, but if I have 100 tables, I need to create 100 DbSets, 1 for each table:</p>
  
  <pre><code>public class Customers : DbContext
  {
      public DbSet&lt;Customer&gt; Customers {get; set;}
      public DbSet&lt;Employees&gt; Employees {get; set;}
      public DbSet&lt;...
      ...
      ...
      95 more
  }
  </code></pre>
  
  <p>With large database models, is it better to split the DbSets in to multiple classes depending on their domain?</p>