public DataMigrationService(ResponsibleSystemDbContext context)
        {
            _context = context;

            _migrations = new List <IDataMigration>()
            {
                new SampleMigration(context)
            };
        }
        public static void SeedHostDb(ResponsibleSystemDbContext 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();
        }
 public DefaultEditionCreator(ResponsibleSystemDbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(ResponsibleSystemDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(ResponsibleSystemDbContext context)
 {
     _context = context;
 }
 public SampleMigration(ResponsibleSystemDbContext dbContext) : base(dbContext)
 {
 }
 public DefaultTenantBuilder(ResponsibleSystemDbContext context)
 {
     _context = context;
 }
Beispiel #8
0
 public EfMigration(ResponsibleSystemDbContext context)
 {
     Context = context;
 }
 public InitialHostDbBuilder(ResponsibleSystemDbContext context)
 {
     _context = context;
 }
Beispiel #10
0
 public TenantRoleAndUserBuilder(ResponsibleSystemDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public HostRoleAndUserCreator(ResponsibleSystemDbContext context)
 {
     _context = context;
 }