title: Entity Framework Code First - Ignore Base Class
body: <p>I have a model as follows:</p>
  
  <pre><code>public class User : System.Web.Security.MembershipUser
  {
  public int UserId { get; set; }
      public string SomeProperty { get; set; }
  }
  </code></pre>
  
  <p>When my database is generated I want the Entity Framework to ignore MembershipUser and only generate a table named User with the two properties from the User class. I've tried the following to no avail.</p>
  
  <pre><code>protected override void OnModelCreating(DbModelBuilder modelBuilder)
  {
      modelBuilder.Ignore&lt;System.Web.Security.MembershipUser&gt;();
  }
  </code></pre>