示例#1
0
        public static void SeedHostDb(MyABPDbContext 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 InitialHostDbBuilder(MyABPDbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(MyABPDbContext context)
 {
     _context = context;
 }
示例#4
0
 public TenantRoleAndUserBuilder(MyABPDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultEditionsCreator(MyABPDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(MyABPDbContext context)
 {
     _context = context;
 }
示例#7
0
 public DefaultTestDataForTask(MyABPDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(MyABPDbContext context)
 {
     _context = context;
 }
示例#9
0
 public DefaultTenantBuilder(MyABPDbContext context)
 {
     _context = context;
 }
示例#10
0
 public DefaultTenantCreator(MyABPDbContext context)
 {
     _context = context;
 }