title: Are generic classes not supported as models in Entity Framework?
body: <p>I am trying to do something like this :</p>
  
  <pre><code>public class TrackerContext : DbContext
  {
      public bool TrackNewValues { get; set; }
  
      public TrackerContext(bool trackNewValues = false)
          : base()
      {
          TrackNewValues = trackNewValues;
      }
  
      public TrackerContext(string connectinString, bool trackNewValues = false)
          : base(connectinString)
      {
          TrackNewValues = trackNewValues;
      }
  
      public DbSet&lt;AuditLog&lt;string&gt;&gt; AuditLog { get; set; }
      public DbSet&lt;AuditLogChild&gt; LogChildren { get; set; }
  }
  
  
  
  public class AuditLog&lt;UserIdOrUserNameColumnType&gt;
  {
      public AuditLog()
      {
          Children = new List&lt;AuditLogChild&gt;();
      }
  
      [Key]
      public Guid AuditLogID { get; set; }
  
      public UserIdOrUserNameColumnType UserId { get; set; }
  
      [Required]
      public DateTimeOffset EventDateUTC { get; set; }
  }
  </code></pre>
  
  <p>But I guess <code>DbSet&lt;AuditLog&lt;string&gt;&gt;</code> is not supported. I get this error: </p>
  
  <blockquote>
    <p>Additional information: The type 'TrackerEnabledDbContext.AuditLog`1[System.String]' was  not mapped. 
        Check that the type has not been explicitly excluded by using the Ignore method or NotMappedAttribute data annotation. 
        Verify that the type was defined as a class, is not primitive or generic, and does not inherit from EntityObject.</p>
  </blockquote>
  
  <p><strong>Is there any ways I can implement <code>public DbSet&lt;AuditLog&lt;string&gt;&gt; AuditLog { get; set; }</code> ?</strong></p>