AuditDbContext Inheriting From IdentityDbContext<ApplicationUser>

Aug 13, 2014 at 5:11 PM
Hi,

Would it be possible for AuditDbContext to inherit from the IdentityDbContext<ApplicationUser>, so that your custom application user will also have auditing and mappings?

I am going to try it, will keep you updated. Anyone who would like to speak their mind, please do so, if this is futile.

Kindly,
JK.
Aug 14, 2014 at 3:29 PM
Hi,

Had a look at the AuditDbContext and inherited the IdentityDbContext, unfortunately it was not successful. Don't have much time to spend on this, will have to look at other options. If someone does have time to attempt this, please let us know.

I will also try and post my alternatives here.

Kindly,
JK.
Coordinator
Aug 14, 2014 at 5:53 PM
Hi JK,

It will not work on the current release version as it does not support EF6 that IdentityDbContext uses.

However I've just checked in an update to support EF6 which may fix your problem. Give it a try and let me know.

Regards,
Russ