//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>();
 }
示例#2
0
        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;
 }
示例#4
0
 public InitialHostDbBuilder(NhapMonCNPMDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(NhapMonCNPMDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(NhapMonCNPMDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
示例#7
0
 public DefaultLanguagesCreator(NhapMonCNPMDbContext context)
 {
     _context = context;
 }
示例#8
0
 public DefaultTenantBuilder(NhapMonCNPMDbContext context)
 {
     _context = context;
 }
示例#9
0
 public DefaultEditionCreator(NhapMonCNPMDbContext context)
 {
     _context = context;
 }