Esempio n. 1
0
 /// <summary>
 ///     Initializes a new instance of the AuditingDbContext class (Extends Microsoft.Data.Entity.DbContext).
 ///     This class writes Audit Logs to the current database using Entity Framework to the default table: [audit].[AuditLogs]
 ///     The Microsoft.Data.Entity.DbContext.OnConfiguring(Microsoft.Data.Entity.DbContextOptionsBuilder)
 ///     method will be called to configure the database (and other options) to be used
 ///     for this context.
 /// </summary>
 protected AuditingDbContext(IExternalAuditStoreProvider externalAuditStoreProvider, IAuditLogBuilder auditLogBuilder)
 {
     _externalAuditStoreProvider = externalAuditStoreProvider;
     _auditLogBuilder            = auditLogBuilder;
 }
Esempio n. 2
0
 public TestDbContext(IExternalAuditStoreProvider externalAuditStoreProvider, IAuditLogBuilder auditLogBuilder)
     : base(externalAuditStoreProvider, auditLogBuilder)
 {
 }