示例#1
0
 public LoginController(PayRollDbContext db, SignInManager <Worker> signInManager, UserManager <Worker> userManager, RoleManager <IdentityRole> roleManager)
 {
     _db            = db;
     _userManager   = userManager;
     _roleManager   = roleManager;
     _signInManager = signInManager;
 }
示例#2
0
        public static void Main(string[] args)
        {
            IWebHost webHost = CreateWebHostBuilder(args).Build();


            using (IServiceScope serviceScope = webHost.Services.CreateScope())
            {
                using (PayRollDbContext dbContext = serviceScope.ServiceProvider.GetRequiredService <PayRollDbContext>())
                {
                    using (UserManager <Worker> userManager = serviceScope.ServiceProvider.GetRequiredService <UserManager <Worker> >())
                    {
                        using (RoleManager <IdentityRole> roleManager = serviceScope.ServiceProvider.GetRequiredService <RoleManager <IdentityRole> >())
                        {
                            DefaultDbData.Seed(dbContext, userManager, roleManager);
                        }
                    }
                }
            }
            webHost.Run();
        }
 public WorkerJobInfoController(PayRollDbContext db)
 {
     _db = db;
 }
 public CityController(PayRollDbContext db)
 {
     _db = db;
 }
示例#5
0
 public ShopController(PayRollDbContext db)
 {
     _db = db;
 }
 public DepartmentController(PayRollDbContext db)
 {
     _db = db;
 }
示例#7
0
 public WorkerController(PayRollDbContext db, SignInManager <Worker> signInManager, UserManager <Worker> userManger)
 {
     _db            = db;
     _userManger    = userManger;
     _signInManager = signInManager;
 }
示例#8
0
 public CompanyController(PayRollDbContext db)
 {
     _db = db;
 }
 public AppsentReasonController(PayRollDbContext db)
 {
     _db = db;
 }
 public WorkerSalaryInfoController(PayRollDbContext db)
 {
     _db = db;
 }
 public BonusController(PayRollDbContext db)
 {
     _db = db;
 }
示例#12
0
 public ProfessionController(PayRollDbContext db)
 {
     _db = db;
 }