コード例 #1
0
        public static void SeedHostDb(AgentPurchaseManagementPlatformDbContext 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 DefaultLanguagesCreator(AgentPurchaseManagementPlatformDbContext context)
 {
     _context = context;
 }
 public DefaultEditionCreator(AgentPurchaseManagementPlatformDbContext context)
 {
     _context = context;
 }
コード例 #4
0
 public TenantRoleAndUserBuilder(AgentPurchaseManagementPlatformDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
コード例 #5
0
 public DefaultSettingsCreator(AgentPurchaseManagementPlatformDbContext context)
 {
     _context = context;
 }
コード例 #6
0
 public DefaultTenantBuilder(AgentPurchaseManagementPlatformDbContext context)
 {
     _context = context;
 }
コード例 #7
0
 public InitialHostDbBuilder(AgentPurchaseManagementPlatformDbContext context)
 {
     _context = context;
 }
コード例 #8
0
 public HostRoleAndUserCreator(AgentPurchaseManagementPlatformDbContext context)
 {
     _context = context;
 }