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(); }
public DefaultTenantBuilder(ProductManagerDbContext context) { _context = context; }
public DefaultLanguagesCreator(ProductManagerDbContext context) { _context = context; }
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; }
public RoleRepository(ProductManagerDbContext context) : base(context) { }
public CategoryRepository(ProductManagerDbContext productManagerDbContext) { _productManagerDbContext = productManagerDbContext; }
public ProductRepository(ProductManagerDbContext productManagerDbContext) { _productManagerDbContext = productManagerDbContext; }
public TenantRoleAndUserBuilder(ProductManagerDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }