Example #1
0
        public static void SeedHostDb(ProductManagerDbContext context)
        {
            context.SuppressAutoSetTenantId = true;

            // Host seed
            new InitialHostDbBuilder(context).Create();

            // Default tenant seed (in host database).
            new DefaultTenantBuilder(context).Create();
            new TenantRoleAndUserBuilder(context, 1).Create();
        }
Example #2
0
 public DefaultTenantBuilder(ProductManagerDbContext context)
 {
     _context = context;
 }
Example #3
0
 public DefaultLanguagesCreator(ProductManagerDbContext context)
 {
     _context = context;
 }
Example #4
0
 public HostRoleAndUserCreator(ProductManagerDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(ProductManagerDbContext context)
 {
     _context = context;
 }
 public DefaultEditionCreator(ProductManagerDbContext context)
 {
     _context = context;
 }
 public ProductRepository()
 {
     this.ctxt = new ProductManagerDbContext();
 }
 public InitialHostDbBuilder(ProductManagerDbContext context)
 {
     _context = context;
 }
Example #9
0
 public RoleRepository(ProductManagerDbContext context) : base(context)
 {
 }
Example #10
0
 public CategoryRepository(ProductManagerDbContext productManagerDbContext)
 {
     _productManagerDbContext = productManagerDbContext;
 }
Example #11
0
 public ProductRepository(ProductManagerDbContext productManagerDbContext)
 {
     _productManagerDbContext = productManagerDbContext;
 }
 public TenantRoleAndUserBuilder(ProductManagerDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }