using BeautySalonDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace BeautySalonDatabaseImplement { public class BeautySalonDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseNpgsql("Host=192.168.56.102;Port=5432;Database=BeautySalonDatabase;Username=postgres;Password=12345"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Masters { set; get; } public virtual DbSet Services { set; get; } public virtual DbSet MasterServices { set; get; } public virtual DbSet Visits { set; get; } public virtual DbSet Clients { set; get; } } }