asp.net-coreaudit.net

AuditIgnore on some functions


On application first startup I have a seed function called.
I am using audit.net to audit EF entities.
Is there any way not to audit the seeded data on startup ?


Solution

  • Yes, there is a Global Switch Off, for example:

    Audit.Core.Configuration.AuditDisabled = true;
    Seed();
    Audit.Core.Configuration.AuditDisabled = false;