Ejemplo n.º 1
0
 public SampleContext(DbContextOptions <SampleContext> options, ApplicationIdentityDbContext identityDbContext, IHttpContextAccessor httpContextAccessor, Multitenancy mt) : base(options)
 {
     context      = httpContextAccessor.HttpContext;
     multitenancy = mt;
     Database.EnsureCreated();
     identityDbContext.Database.Migrate();
 }
Ejemplo n.º 2
0
 public SampleContext(IHttpContextAccessor httpContextAccessor, Multitenancy mt, ApplicationIdentityDbContext identityDbContext)
 {
     context      = httpContextAccessor.HttpContext;
     multitenancy = mt;
     Database.EnsureCreated();
     identityDbContext.Database.Migrate();
 }