예제 #1
0
 public SampleContext(IHttpContextAccessor httpContextAccessor, Multitenancy mt, ApplicationIdentityDbContext identityDbContext)
 {
     context      = httpContextAccessor.HttpContext;
     multitenancy = mt;
     Database.EnsureCreated();
     identityDbContext.Database.Migrate();
 }
예제 #2
0
 public SampleContext(DbContextOptions <SampleContext> options, ApplicationIdentityDbContext identityDbContext, IHttpContextAccessor httpContextAccessor, Multitenancy mt) : base(options)
 {
     context      = httpContextAccessor.HttpContext;
     multitenancy = mt;
     Database.EnsureCreated();
     identityDbContext.Database.Migrate();
 }
예제 #3
0
 public ApplicationIdentityDbContext(IHttpContextAccessor httpContextAccessor, Multitenancy mt)
 {
     context      = httpContextAccessor.HttpContext;
     multitenancy = mt;
 }
예제 #4
0
 public ApplicationIdentityDbContext(DbContextOptions <ApplicationIdentityDbContext> options, IHttpContextAccessor httpContextAccessor, Multitenancy mt) : base(options)
 {
     context      = httpContextAccessor.HttpContext;
     multitenancy = mt;
 }