public static void SeedHostDb(AcmStatisticsAbpDbContext 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();
        }
Beispiel #2
0
 public DefaultSettingsCreator(AcmStatisticsAbpDbContext context)
 {
     this.context = context;
 }
Beispiel #3
0
 public DefaultLanguagesCreator(AcmStatisticsAbpDbContext context)
 {
     this.context = context;
 }
Beispiel #4
0
 public HostRoleAndUserCreator(AcmStatisticsAbpDbContext context)
 {
     this.context = context;
 }
 public DefaultEditionCreator(AcmStatisticsAbpDbContext context)
 {
     this.context = context;
 }
 public InitialHostDbBuilder(AcmStatisticsAbpDbContext context)
 {
     this.context = context;
 }
Beispiel #7
0
 public DefaultTenantBuilder(AcmStatisticsAbpDbContext context)
 {
     this.context = context;
 }
 public TenantRoleAndUserBuilder(AcmStatisticsAbpDbContext context, int tenantId)
 {
     this.context  = context;
     this.tenantId = tenantId;
 }