/// <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;
 }
예제 #2
0
 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)
 {
     _externalAuditStoreProvider = externalAuditStoreProvider;
 }
예제 #4
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;
 }
예제 #5
0
 public MyDBContext(IExternalAuditStoreProvider externalAuditStoreProvider)
     : base(externalAuditStoreProvider)
 {
 }
예제 #6
0
 public TestDbContext(IExternalAuditStoreProvider externalAuditStoreProvider, IAuditLogBuilder auditLogBuilder)
     : base(externalAuditStoreProvider, auditLogBuilder)
 {
 }