示例#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;
 }
 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;
 }
 public ReservationRepository(BackendDbContext context)
     : base(context)
 {
 }
示例#14
0
 public DeleteTodoService(BackendDbContext context)
 {
     _context = context;
 }
示例#15
0
 public ValuesController(BackendDbContext db)
 {
     DbContext = db;
 }
 public SupplierRepository(BackendDbContext context)
 {
     _context = context;
 }
 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;
 }
 public ContactRepository(BackendDbContext context)
     : base(context)
 {
 }
 public BookingRepository(BackendDbContext context)
 {
     _context = context;
 }
示例#23
0
 public DefaultEditionsCreator(BackendDbContext context)
 {
     _context = context;
 }
 public TodosController(BackendDbContext context)
 {
     _context = context;
 }