Exemple #1
0
 public SystemDbContext(DbContextOptions <SystemDbContext> options)
     : base(options)
 {
     _mediator = this.GetInfrastructure().GetService <IMediator>() ?? NullMediatorProvider.GetNullMediator();
 }
 public PlutoNetTemplateDbContext(DbContextOptions <PlutoNetTemplateDbContext> options, ITenantProvider tenantProvider)
     : base(options)
 {
     _tenantProvider = tenantProvider;
     _mediator       = this.GetInfrastructure().GetService <IMediator>() ?? NullMediatorProvider.GetNullMediator();
 }