using DatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace DatabaseImplement { public class AutoShopDB : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseNpgsql(@" Host=localhost; Port=5432; Database=AutoShopFullNew; Username=postgres; Password=55256636a;"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Clients { set; get; } public virtual DbSet Costs { set; get; } public virtual DbSet OrderByPurchases { set; get; } public virtual DbSet Employees { set; get; } public virtual DbSet Operations { set; get; } public virtual DbSet OperationByPurchases { set; get; } public virtual DbSet Payments { set; get; } public virtual DbSet Purchases { set; get; } } }