Esempio n. 1
0
        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;
 }
Esempio n. 3
0
 public EditModel(BookListDbContext _context) => context = _context;
Esempio n. 4
0
 // Expression body syntax for constructor
 public IndexModel(BookListDbContext _context) => context = _context;
 public DefaultTenantBuilder(BookListDbContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public AddModel(BookListDbContext _context) => context = _context;
Esempio n. 7
0
 public TenantRoleAndUserBuilder(BookListDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Esempio n. 8
0
 public InitialHostDbBuilder(BookListDbContext context)
 {
     _context = context;
 }
Esempio n. 9
0
 public DefaultSettingsCreator(BookListDbContext context)
 {
     _context = context;
 }
Esempio n. 10
0
 public BookController(BookListDbContext _context) => context = _context;
Esempio n. 11
0
 public DefaultLanguagesCreator(BookListDbContext context)
 {
     _context = context;
 }
 public CreateModel(BookListDbContext db)
 {
     _db = db;
 }
Esempio n. 13
0
 public BooksController(BookListDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
Esempio n. 14
0
 public UpsertModel(BookListDbContext _context) => context = _context;
 public EditModel(BookListDbContext db)
 {
     _db = db;
 }
 public DefaultEditionCreator(BookListDbContext context)
 {
     _context = context;
 }
Esempio n. 17
0
 public HostRoleAndUserCreator(BookListDbContext context)
 {
     _context = context;
 }
Esempio n. 18
0
 public BookController(BookListDbContext db)
 {
     _db = db;
 }