AuditIgnore on some functions

162 Views Asked by At

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 ?

1

There are 1 best solutions below

0
On BEST ANSWER

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

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