示例#1
0
文件: SeedHelper.cs 项目: satem02/abp
        public static void SeedHostDb(SatemDbContext 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();
        }
示例#2
0
 public DefaultTenantBuilder(SatemDbContext context)
 {
     _context = context;
 }
示例#3
0
 public DefaultSettingsCreator(SatemDbContext context)
 {
     _context = context;
 }
示例#4
0
 public TenantRoleAndUserBuilder(SatemDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
示例#5
0
 public HostRoleAndUserCreator(SatemDbContext context)
 {
     _context = context;
 }
示例#6
0
 public InitialHostDbBuilder(SatemDbContext context)
 {
     _context = context;
 }
示例#7
0
 public DefaultLanguagesCreator(SatemDbContext context)
 {
     _context = context;
 }
示例#8
0
 public DefaultEditionCreator(SatemDbContext context)
 {
     _context = context;
 }