title: Cannot create a DbSet for 'OpenIddictApplication' because this type is not included in the model for the context
body: <p>I am trying to customize the OpenIddictApplication table and i am succeeded about that. </p>
  
  <p>My problem is that when i try to generate token i got the following error "Cannot create a DbSet for 'OpenIddictApplication' because this type is not included in the model for the context". </p>
  
  <p>Here is my service configuration:</p>
  
  <pre><code>    public void ConfigureServices(IServiceCollection services)
      {
      services.AddMvc().AddXmlSerializerFormatters();
      services.AddSingleton&lt;IHttpContextAccessor, HttpContextAccessor&gt;();
  
      services.AddDbContext&lt;ApiHubContext&gt;(options =&gt;
      {
          options.UseMySql(Configuration.GetConnectionString("DefaultConnection"));
          options.UseOpenIddict&lt;ApplicationClient, ApplicationAuthorization, ApplicationScope, ApplicationToken, long&gt;();
      });
      services.AddOpenIddict()
          .AddCore(options =&gt;
          {
              options.UseEntityFrameworkCore().UseDbContext&lt;ApiHubContext&gt;();
          })
          .AddServer(options =&gt;
          {
              options.UseMvc();
              options.EnableTokenEndpoint("/connect/token");
              options.AllowClientCredentialsFlow().AllowRefreshTokenFlow();
              options.SetAccessTokenLifetime(TimeSpan.FromMinutes(10));
              options.SetRefreshTokenLifetime(TimeSpan.FromMinutes(4));
              options.AcceptAnonymousClients();
          })
          .AddValidation();
  
      services.AddAuthentication(options =&gt;
      {
          options.DefaultScheme = OpenIddictValidationDefaults.AuthenticationScheme;
      });
  } 
  </code></pre>
  
  <p>My Custom DbContext:</p>
  
  <pre><code> public class ApiHubContext : DbContext
      {
          public ApiHubContext(DbContextOptions options)
              : base(options) { }
  
          protected override void OnModelCreating(ModelBuilder builder)
          {
              base.OnModelCreating(builder);
              //builder.UseOpenIddict();
              builder.UseOpenIddict&lt;ApplicationClient, ApplicationAuthorization, ApplicationScope, ApplicationToken, long&gt;();
          }
      }
  
      public class ApplicationClient : OpenIddictApplication&lt;long, ApplicationAuthorization, ApplicationToken&gt;
      {
          public bool IsActive { get; set; }
          public string Remarks { get; set; }
      }
  
      public class ApplicationAuthorization : OpenIddictAuthorization&lt;long, ApplicationClient, ApplicationToken&gt; { }
      public class ApplicationScope : OpenIddictScope&lt;long&gt; { }
      public class ApplicationToken : OpenIddictToken&lt;long, ApplicationClient, ApplicationAuthorization&gt; { }
  </code></pre>
  
  <p>I have already checked <a href="https://github.com/openiddict/openiddict-core/issues/434" rel="nofollow noreferrer">this link</a>.</p>
  
  <p>Is there anything i have missed ? </p>