Exemplo n.º 1
0
        public static void SeedHostDb(IoTManagerDbContext 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 DefaultSettingsCreator(IoTManagerDbContext context)
 {
     _context = context;
 }
 public DefaultEditionCreator(IoTManagerDbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(IoTManagerDbContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public InitialHostDbBuilder(IoTManagerDbContext context)
 {
     _context = context;
 }
Exemplo n.º 6
0
 public HostRoleAndUserCreator(IoTManagerDbContext context)
 {
     _context = context;
 }
 public DefaultTenantBuilder(IoTManagerDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(IoTManagerDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }