title: LINQPad error: Context is inaccessible due to its protection level
body: <p>I use <code>DbContext</code> from custom assembly. LINQPad fails to run any query with this error message:</p>
  
  <pre><code>'project.model.Context' is inaccessible due to its protection level
  
  Inconsistent accessibility: base class 'project.model.Context' is less accessible than class 'UserQuery'
  </code></pre>
  
  <p><code>Context</code> class was marked as <code>internal</code>, but making it <code>public</code> didn't solved the issue.</p>
  
  <pre><code>public partial class Context : DbContext
  {
      public Context()
          : base("name=Context")
      {
      }
  
      // all constructors are public
  </code></pre>
  
  <p>Found <a href="http://forum.linqpad.net/discussion/7/objectcontext-is-inaccessible-due-to-its-protection-level" rel="nofollow">this</a>, but it didn't helped either.</p>