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