Enabling AuditLog EnityChanges for IdentityUser in ABP Framework.
IdentityUser
Finally found this after hours of best practice search.
Adding IdentityUser to EntityHistorySelectors will enable audting.
EntityHistorySelectors
public class SampleDomainModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { //Enable AuditLog EntityChanges for IdentityUser Configure<AbpAuditingOptions>(options => { options.EntityHistorySelectors.Add(new NamedTypeSelector("AuditIdentityUser",type => typeof(IdentityUser).IsAssignableFrom(type))); }); Configure<AbpMultiTenancyOptions>(options => { options.IsEnabled = MultiTenancyConsts.IsEnabled; }); } }
Adding
IdentityUser
toEntityHistorySelectors
will enable audting.