/// <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) { _externalAuditStoreProvider = externalAuditStoreProvider; }
public MyDBContext(IExternalAuditStoreProvider externalAuditStoreProvider) : base(externalAuditStoreProvider) { }
/// <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; }
public TestDbContext(IExternalAuditStoreProvider externalAuditStoreProvider, IAuditLogBuilder auditLogBuilder) : base(externalAuditStoreProvider, auditLogBuilder) { }