title: EntityFramework.Plus: One or more validation errors were detected during model generation
body: <p>I am using the audit feature of EntityFramework.Plus in an EF6 Code First project. When I add the following code:</p>
  
  <pre><code>public virtual DbSet&lt;AuditEntry&gt; AuditEntries { get; set; }
  
  public virtual DbSet&lt;AuditEntryProperty&gt; AuditEntryProperties { get; set; }
  
  static EntityContext()
     {
              AuditManager.DefaultConfiguration.AutoSavePreAction = (context, audit) =&gt;
              {
                  var Entities = context as EntityContext;
                  if (Entities != null)
                  {
                      Entities.AuditEntries.AddRange(audit.Entries);
                  }
                  else throw new InvalidOperationException($"Context is null for {context.Database.Connection}");
              };
          }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>One or more validation errors were detected during model
    generation:\r\n\r\nWebsite.Core.Entities.Audit: : EntityType 'Audit'
    has no key defined. Define the key for this EntityType.\r\nAudits:
    EntityType: EntitySet 'Audits' is based on type 'Audit' that has no
    keys defined.\r\n",   "exceptionType":
    "System.Data.Entity.ModelConfiguration.ModelValidationException"</p>
  </blockquote>
  
  <p>Audit is not an entity in my project - as stated by the error. This error is removed when I remove the code above.</p>
  
  <p>Can anyone help? Is it possible to suppress model validation for external library types?</p>
  
  <p>Thanks in advance</p>
  
  <p>HS</p>