Beispiel #1
0
        public EFCoreAudit(DbContextOptions <System.Entities.SystemContext> options) : base(options)
        {
            var dataProvider = new DynamicDataProvider();

            dataProvider.AttachOnInsert(ev => Console.Write(ev.ToJson()));
            Audit.Core.Configuration.DataProvider = dataProvider;
        }
Beispiel #2
0
 public IDynamicDataProviderConfigurator OnInsert(Action <AuditEvent> insertAction)
 {
     _dynamicDataProvider.AttachOnInsert(insertAction);
     return(this);
 }