using CandidateReviewDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace CandidateReviewDatabaseImplement { public class CandidateReviewDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=CandidateReviewDatabase;Username=postgres;Password=12345"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Users { set; get; } public virtual DbSet Companies { set; get; } public virtual DbSet Vacancies { set; get; } public virtual DbSet Resumes { set; get; } public virtual DbSet Assessments { set; get; } public virtual DbSet Criterions { set; get; } public virtual DbSet AssessmentCriterions { set; get; } } }