using CarRentDatabase.Models; using Microsoft.EntityFrameworkCore; using System.Numerics; using System.Reflection.Metadata; namespace CarRentDatabase { public class CarRentDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseNpgsql(@" Host=192.168.56.101; Port=5432; Database=SUBDLab4; Username=postgres; Password=123"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Branches { set; get; } public virtual DbSet Cars { set; get; } public virtual DbSet Clients { set; get; } public virtual DbSet Rentals { set; get; } } }