コード例 #1
0
        public static void SeedHostDb(BackendDbContext 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(BackendDbContext context)
 {
     _context = context;
 }
コード例 #3
0
 public InitialHostDbBuilder(BackendDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(BackendDbContext context)
 {
     _context = context;
 }
コード例 #5
0
 public SettingsController(BackendDbContext context)
 {
     _context = context;
 }
コード例 #6
0
 public AddTodoService(BackendDbContext context)
 {
     _context = context;
 }
コード例 #7
0
 public TenantRoleAndUserBuilder(BackendDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
コード例 #8
0
 public DefaultLanguagesCreator(BackendDbContext context)
 {
     _context = context;
 }
コード例 #9
0
 public CatService(BackendDbContext data) => this.data = data;
コード例 #10
0
 public TransporterRepository(BackendDbContext context)
 {
     _context = context;
 }
コード例 #11
0
 public OrderRepository(BackendDbContext context)
 {
     _context = context;
 }
コード例 #12
0
 public DefaultTenantCreator(BackendDbContext context)
 {
     _context = context;
 }
コード例 #13
0
 public ReservationRepository(BackendDbContext context)
     : base(context)
 {
 }
コード例 #14
0
 public DeleteTodoService(BackendDbContext context)
 {
     _context = context;
 }
コード例 #15
0
 public ValuesController(BackendDbContext db)
 {
     DbContext = db;
 }
コード例 #16
0
 public SupplierRepository(BackendDbContext context)
 {
     _context = context;
 }
コード例 #17
0
 public WorkersController(BackendDbContext context)
 {
     _context = context;
 }
コード例 #18
0
 public DefaultSettingsCreator(BackendDbContext context)
 {
     _context = context;
 }
コード例 #19
0
 public IntervalsRepository(BackendDbContext context)
 {
     _context = context;
 }
コード例 #20
0
 public ScheduleRepository(BackendDbContext context)
 {
     _context = context;
 }
コード例 #21
0
 public ContactRepository(BackendDbContext context)
     : base(context)
 {
 }
コード例 #22
0
 public BookingRepository(BackendDbContext context)
 {
     _context = context;
 }
コード例 #23
0
 public DefaultEditionsCreator(BackendDbContext context)
 {
     _context = context;
 }
コード例 #24
0
 public TodosController(BackendDbContext context)
 {
     _context = context;
 }