-
You can use one or more
DbContexts
for the administration. -
The configuration of DbContexts is in the
Startup.cs
:
services.AddAdminServices<AdminDbContext>();
AddAdminServices
expects one generic param:
TAdminDbContext
- It requires to implement interfacesIAdminConfigurationDbContext
,IAdminPersistedGrantDbContext
,IAdminLogDbContext
- It is possible to overload this method:
services.AddAdminServices<TConfigurationDbContext, TPersistedGrantDbContext, TLogDbContext>();
AddAdminServices
expects following generic params:
TConfigurationDbContext
- DbContext for the configuration data- It requires to implement interface
IAdminConfigurationDbContext
- It requires to implement interface
TPersistedGrantDbContext
- DbContext for the operational data- It requires to implement interface
IAdminPersistedGrantDbContext
- It requires to implement interface
TLogDbContext
- for the logs - DbContext for the operational data- It requires to implement interface
IAdminLogDbContext
- It requires to implement interface