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 ?
Asked
Active
Viewed 143 times
1

thepirat000
- 12,362
- 4
- 46
- 72

Sarahbe
- 123
- 1
- 16
1 Answers
1
Yes, there is a Global Switch Off, for example:
Audit.Core.Configuration.AuditDisabled = true;
Seed();
Audit.Core.Configuration.AuditDisabled = false;

thepirat000
- 12,362
- 4
- 46
- 72