title: System.Data.Entity.Infrastructure.UnintentionalCodeFirstException was unhandled by user code HResult=-2146233079
body: <p>I'm using Entityframework with repository pattern using database. I'm getting the following error when I try to connect to the database</p>
  
  <blockquote>
    <p>System.Data.Entity.Infrastructure.UnintentionalCodeFirstException was unhandled by user code
      HResult=-2146233079</p>
  </blockquote>
  
  <pre><code>protected override void OnModelCreating(DbModelBuilder modelBuilder)
  {
      throw new UnintentionalCodeFirstException();
  }
  </code></pre>
  
  <p>How do I fix this?</p>