using UniversityDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace PizzeriaDatabaseImplement { public class PizzeriaDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=UniversityDatabase;Username=postgres;Password=postgres"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Activity { set; get; } public virtual DbSet Discipline { set; get; } public virtual DbSet ExaminationResult { set; get; } public virtual DbSet ReportType { set; get; } public virtual DbSet ReportTypeActivity { set; get; } public virtual DbSet ReportTypeDiscipline { set; get; } public virtual DbSet Statement { set; get; } public virtual DbSet StatementStudent { set; get; } public virtual DbSet Student { set; get; } public virtual DbSet StudentExaminationResult { set; get; } } }