title: c# DbSet - Internal object cannot be got
body: <p>I need to switch an entity to internal. So I create it. No build/runtime error. But when I want to use the DbSet object I can't because the object seems not initialized !</p>
  
  <p>My ContextEntities:</p>
  
  <pre><code>public partial class Entities
  {
     internal DbSet&lt;Employee&gt; EmployeeSet { get; set; }
  }
  </code></pre>
  
  <p>I use like this:</p>
  
  <pre><code>Entities context = new Entities();
  List&lt;Employee&gt; employees = context.EmployeeSet.ToList();
  </code></pre>
  
  <p>But "EmployeeSet" is null. I think it's because it is not instantiated in get. It works if I use public like this:</p>
  
  <pre><code>public partial class Entities
  {
     public DbSet&lt;Employee&gt; EmployeeSet { get; set; }
  }
  </code></pre>
  
  <p>Questions:
  Can it work if a DbSet is marked internal? If so how? Why does that break it?
  (thanks Scott Stafford)</p>