title: Audit.Net:Setup().ForContext<MyContext>() results in no entities being mapped
body: <p>Configuring Audit.EntityFramework with the below configuration (part of Audit.Net) does not result in the proper mapping of entities. 
      <code>Audit.EntityFramework.Configuration.Setup().ForContext&lt;AuditAudiCCPContext&gt;().UseOptOut();</code></p>
  
  <p>The method </p>
  
  <pre><code>public override object InsertEvent(AuditEvent auditEvent)
  </code></pre>
  
  <p>of <code>EntityFrameworkDataProvider.cs</code> returns without any exception because it is unable to find the mapped entity.
  Line 96 of <code>EntityFrameworkDataProvider.cs</code>:                       </p>
  
  <pre><code>var mappedType = _auditTypeMapper?.Invoke(type, entry);
  </code></pre>
  
  <p>which attempts to map the entity to the audited entity fails to produce any result.</p>
  
  <p>I tried the following other configurations</p>
  
  <p>a. </p>
  
  <pre><code>Audit.EntityFramework.Configuration.Setup()
          .ForContext&lt;AuditAudiCCPContext&gt;(config =&gt; config
           .ForEntity&lt;SubjectInfo&gt;(_=&gt;_.Ignore(e=&gt;e.Ticket).Ignore(e=&gt;e.LevelSubjectMap))
          .AuditEventType("{context}:{database}"))
          .UseOptIn();
  </code></pre>
  
  <p>b. The suggestions in this post -<a href="https://stackoverflow.com/questions/57780463/how-do-i-target-another-database-with-audit-net-audit-entityframework-core">How do I target another database with Audit.Net - Audit.EntityFramework.Core</a></p>
  
  <p>c. I am unable to use the method <code>UseEntityFramework</code> on <code>Setup()</code> because it is unavailable. </p>
  
  <p>It should create an entry in the audit database table, but that does not happen. There are no exceptions either.</p>