Example #1
0
        public static void SeedHostDb(SplitPackageDbContext context)
        {
            context.SuppressAutoSetTenantId = true;

            // Host seed
            new InitialHostDbBuilder(context).Create();

            //Default Business Data seed
            new InitialBusinessDbBuilder(context).Create();

            new InitialTenantBuilder(context).Create();
        }
Example #2
0
 public abstract void InitData(SplitPackageDbContext context);
 public HostRoleAndUserCreator(SplitPackageDbContext context)
 {
     _context = context;
 }
 public DefaultLogisticCreator(SplitPackageDbContext context)
 {
     this._context = context;
 }
 public DefaultEditionCreator(SplitPackageDbContext context)
 {
     _context = context;
 }
 public DefaultProductSortCreator(SplitPackageDbContext context)
 {
     this._context = context;
 }
 public override void InitData(SplitPackageDbContext context)
 {
     new AddRuleBuilder(context, null).Create();
 }
Example #8
0
 public DefaultTenantBuilder(SplitPackageDbContext context, string[] tenants)
 {
     this._context = context;
     this._tenants = tenants;
 }
Example #9
0
 public override void InitData(SplitPackageDbContext context)
 {
 }
 public TenantRoleAndUserBuilder(SplitPackageDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Example #11
0
 public override void InitData(SplitPackageDbContext context)
 {
     new SkuRuleBuilder(context, context.Tenants.First(o => o.TenancyName == "AstraeaAssistant").Id).Create();
 }
Example #12
0
 public DefaultSettingsCreator(SplitPackageDbContext context)
 {
     _context = context;
 }
 public InitialBusinessDbBuilder(SplitPackageDbContext context)
 {
     _context = context;
 }
 public InitialTenantBuilder(SplitPackageDbContext context)
 {
     this._context = context;
 }
Example #15
0
 public AddRuleBuilder(SplitPackageDbContext context, int?tenantId)
 {
     this._context = context;
     this.tenantId = tenantId;
 }
 public DefaultOtherSystemCreator(SplitPackageDbContext context)
 {
     this._context = context;
 }
 public DefaultLanguagesCreator(SplitPackageDbContext context)
 {
     _context = context;
 }
Example #18
0
 public DefaultTenantBusinessBuilder(SplitPackageDbContext context)
 {
     this._context = context;
 }
 public InitialHostDbBuilder(SplitPackageDbContext context)
 {
     _context = context;
 }