//protected IUserService userService { set; get; } protected NhapMonCNPMAppServiceBase() { LocalizationSourceName = NhapMonCNPMConsts.LocalizationSourceName; WorkScope = IocManager.Instance.Resolve <IWorkScope>(); ObjectMapper = IocManager.Instance.Resolve <IObjectMapper>(); UserManager = IocManager.Instance.Resolve <UserManager>(); TenantManager = IocManager.Instance.Resolve <TenantManager>(); dbContext = IocManager.Instance.Resolve <NhapMonCNPMDbContext>(); }
public static void SeedHostDb(NhapMonCNPMDbContext 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 DefaultSettingsCreator(NhapMonCNPMDbContext context) { _context = context; }
public InitialHostDbBuilder(NhapMonCNPMDbContext context) { _context = context; }
public HostRoleAndUserCreator(NhapMonCNPMDbContext context) { _context = context; }
public TenantRoleAndUserBuilder(NhapMonCNPMDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultLanguagesCreator(NhapMonCNPMDbContext context) { _context = context; }
public DefaultTenantBuilder(NhapMonCNPMDbContext context) { _context = context; }
public DefaultEditionCreator(NhapMonCNPMDbContext context) { _context = context; }