C# does not support multiple inheritance by design so you cannot inherit from both. You'll have to move the logic from one to the other type.
Just taking a quick look at the link you provided it doesn't really need a base type. It can work with any DbContext
implementation. All you need to do is move the "generate the audit" logic into an extension method off of DbContext
. Now it is reusable anywhere. Then override your SaveChangesAsync
method in your actual DbContext
and call the extension method.