Reputation: 203
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
Reputation: 13114
Yes, there is a Global Switch Off, for example:
Audit.Core.Configuration.AuditDisabled = true;
Seed();
Audit.Core.Configuration.AuditDisabled = false;
Upvotes: 1