Exemplo n.º 1
0
 public EmployerJobService(
     JobBoardDbContext db,
     IHttpContextAccessor context,
     UserManager <User> userManager
     )
 {
     this.db          = db;
     _context         = context;
     this.userManager = userManager;
 }
Exemplo n.º 2
0
 public CandidateCvService(
     JobBoardDbContext db,
     IHttpContextAccessor context,
     UserManager <User> userManager
     )
 {
     this.db          = db;
     _context         = context;
     this.userManager = userManager;
 }
Exemplo n.º 3
0
        // also calling seed data in the configure method of startup.cs

        public static void InitializeDb(IServiceProvider serviceProvider)
        {
            using (var context = new JobBoardDbContext(
                       serviceProvider.GetRequiredService <DbContextOptions <JobBoardDbContext> >()))
            {
                if (context.JsonJob.Any())
                {
                    return; // db has already been seeded
                }

                context.JsonJob.AddRange(
                    new JsonJob
                {
                    ApplicationLink = "http://www.phcnw.com/about-us/careers-phcnw",
                    Company         = "PHC Northwest",
                    DatePosted      = "Closing Date: open until filled",
                    Experience      = "",
                    Hours           = "Full Time",
                    JobID           = "",
                    JobTitle        = "Project Area Manager, Washington County",
                    LanguagesUsed   = "",
                    Location        = "Portland Metro",
                    Salary          = ""
                },

                    new JsonJob
                {
                    ApplicationLink = "http://[email protected]",
                    Company         = "Maxwell PR + Engagement",
                    DatePosted      = "Closing Date: open until filled",
                    Experience      = "",
                    Hours           = "Full Time",
                    JobID           = "",
                    JobTitle        = "Paid Media Specialist",
                    LanguagesUsed   = "",
                    Location        = "Portland Metro",
                    Salary          = ""
                }
                    );

                // save the data into the db
                context.SaveChanges();
            }
        }
Exemplo n.º 4
0
 public WebsiteIDsController(JobBoardDbContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public LanguageService(JobBoardDbContext db) : base(db)
 {
 }
Exemplo n.º 6
0
 public EducationRepository(JobBoardDbContext repositoryContext)
     : base(repositoryContext)
 {
 }
Exemplo n.º 7
0
 public SkillRepository(JobBoardDbContext repositoryContext)
     : base(repositoryContext)
 {
 }
Exemplo n.º 8
0
 public JsonJobsController(JobBoardDbContext context)
 {
     _context = context;
 }
Exemplo n.º 9
0
 public CompanyRepository(JobBoardDbContext Repository)
     : base(Repository)
 {
 }
Exemplo n.º 10
0
 public WorkService(JobBoardDbContext db) : base(db)
 {
 }
Exemplo n.º 11
0
 public ResumeRepository(JobBoardDbContext repositoryContext)
     : base(repositoryContext)
 {
 }
 public GenericListCrudService(JobBoardDbContext db)
 {
     this.db = db;
 }
Exemplo n.º 13
0
 public JobBoardController(ILogger <JobBoardController> logger, JobBoardDbContext dbContext)
 {
     Logger    = logger;
     DbContext = dbContext;
 }
Exemplo n.º 14
0
 public WorkingExperienceRepository(JobBoardDbContext repositoryContext)
     : base(repositoryContext)
 {
 }
Exemplo n.º 15
0
 public RepositoryBase(JobBoardDbContext repositoryContext)
 {
     this.JobBoardContext = repositoryContext;
 }
Exemplo n.º 16
0
 public CompanyIDsController(JobBoardDbContext context)
 {
     _context = context;
 }
Exemplo n.º 17
0
 public EducationService(JobBoardDbContext db) : base(db)
 {
 }
Exemplo n.º 18
0
 public JBUserRepository(JobBoardDbContext Repository) : base(Repository)
 {
 }
Exemplo n.º 19
0
 public JobOfferRepository(JobBoardDbContext repositoryContext)
     : base(repositoryContext)
 {
 }
Exemplo n.º 20
0
 public PlaceIDsController(JobBoardDbContext context)
 {
     _context = context;
 }
Exemplo n.º 21
0
 public SkillService(JobBoardDbContext db) : base(db)
 {
 }
Exemplo n.º 22
0
 public LanguageRepository(JobBoardDbContext repositoryContext)
     : base(repositoryContext)
 {
 }