using BankDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; namespace BankDatabaseImplement { public class BankDB : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseNpgsql(@" Host=localhost; Port=5432; Database=BankFullNew; Username=postgres; Password=postgres;"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Clients { set; get; } public virtual DbSet Costs { set; get; } public virtual DbSet CostByPurchases { 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; } } }