public static void SeedHostDb(PracticeDbContext 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 DefaultEditionCreator(PracticeDbContext context) { _context = context; }
public TenantRoleAndUserBuilder(PracticeDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultSettingsCreator(PracticeDbContext context) { _context = context; }
public InitialHostDbBuilder(PracticeDbContext context) { _context = context; }
public DefaultTenantBuilder(PracticeDbContext context) { _context = context; }
public HostRoleAndUserCreator(PracticeDbContext context) { _context = context; }
public AuthorsController(PracticeDbContext context) { _context = context; }
public PostsController(PracticeDbContext context) // { _context = context; }
public DefaultLanguagesCreator(PracticeDbContext context) { _context = context; }