Sarahbe
Sarahbe

Reputation: 203

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 ?

Upvotes: 1

Views: 190

Answers (1)

thepirat000
thepirat000

Reputation: 13114

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

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

Upvotes: 1

Related Questions