public static void SeedHostDb(BookListDbContext 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 IndexModel(BookListDbContext db) { _db = db; }
public EditModel(BookListDbContext _context) => context = _context;
// Expression body syntax for constructor public IndexModel(BookListDbContext _context) => context = _context;
public DefaultTenantBuilder(BookListDbContext context) { _context = context; }
public AddModel(BookListDbContext _context) => context = _context;
public TenantRoleAndUserBuilder(BookListDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public InitialHostDbBuilder(BookListDbContext context) { _context = context; }
public DefaultSettingsCreator(BookListDbContext context) { _context = context; }
public BookController(BookListDbContext _context) => context = _context;
public DefaultLanguagesCreator(BookListDbContext context) { _context = context; }
public CreateModel(BookListDbContext db) { _db = db; }
public BooksController(BookListDbContext dbContext) { this.dbContext = dbContext; }
public UpsertModel(BookListDbContext _context) => context = _context;
public EditModel(BookListDbContext db) { _db = db; }
public DefaultEditionCreator(BookListDbContext context) { _context = context; }
public HostRoleAndUserCreator(BookListDbContext context) { _context = context; }
public BookController(BookListDbContext db) { _db = db; }