I have just implemented the DuendeIdentity Server and by DBContext looks like this.
public class DataContext : ApiAuthorizationDbContext<ApplicationUser>
{
public DataContext(
DbContextOptions options,
IOptions<OperationalStoreOptions> operationalStoreOptions) : base(options, operationalStoreOptions)
{
}
...
I now wish to implement some basic Database Auditing which I have successfully done in the past using this https://codewithmukesh.com/blog/audit-trail-implementation-in-aspnet-core/ however it is implemented in this way
public abstract class AuditableIdentityContext : IdentityDbContext
{
public AuditableIdentityContext(DbContextOptions options) : base(options)
{
}
With the DataContext then inheriting from it like
public partial class DataContext : AuditContext
{
public DataContext(DbContextOptions<DataContext> options)
: base(options)
{
}
I am trying to understand how I may use the two together. Any help would be appreciated.