Example #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="options"></param>
 /// <param name="schema"></param>
 /// <param name="assemblyConfigurations"></param>
 /// <param name="auditableService"></param>
 public DbContextBase(DbContextOptions options, string schema, Assembly assemblyConfigurations,
                      IAuditableService auditableService) : base(options)
 {
     _assemblyConfigurations = assemblyConfigurations;
     _auditableService       = auditableService;
     Schema = schema;
     // ReSharper disable once VirtualMemberCallInConstructor
     ChangeTracker.LazyLoadingEnabled = false;
 }
 public SharedKernelDbContext(DbContextOptions <SharedKernelDbContext> options,
                              IAuditableService auditable = null, IEventBus eventBus = null) : base(options, "skr",
                                                                                                    typeof(SharedKernelDbContext).Assembly, auditable, eventBus)
 {
 }
Example #3
0
 // typeof(StockDbContext).Assembly Ahorramos los mappings de EregesUnitOfWork
 public StockDbContext(DbContextOptions options, IAuditableService auditableService) :
     base(options, "stock", typeof(StockDbContext).Assembly, auditableService, null)
 {
 }