public static void SeedHostDb(Project1DbContext 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(Project1DbContext context) { _context = context; }
public DefaultLanguagesCreator(Project1DbContext context) { _context = context; }
public DefaultSettingsCreator(Project1DbContext context) { _context = context; }
/// <summary> /// A constructor that will accept dbContext as an object copy to instantiate connection /// </summary> /// <param name="dbContext"> a dbContext used to instantiate</param> public StoreRepository(Project1DbContext dbContext) => _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
public InitialHostDbBuilder(Project1DbContext context) { _context = context; }
public HostRoleAndUserCreator(Project1DbContext context) { _context = context; }
public TenantRoleAndUserBuilder(Project1DbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultEditionCreator(Project1DbContext context) { _context = context; }