1

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 ?

thepirat000
  • 12,362
  • 4
  • 46
  • 72
Sarahbe
  • 123
  • 1
  • 16

1 Answers1

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