еще одна сохра для не сохр. файла

This commit is contained in:
Extrimal 2024-05-06 22:27:10 +04:00
parent ff949eabc1
commit 6d466b79e0

View File

@ -14,9 +14,11 @@ namespace HotelDatabaseImplement
{
if (optionsBuilder.IsConfigured == false)
{
optionsBuilder.UseSqlServer(@"Data Source=localhost\SQLEXPRESS01;Initial Catalog=HotelDatabaseBD;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=Hotel_Subd_DB;Username=postgres;Password=admin");
}
base.OnConfiguring(optionsBuilder);
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true);
}
public virtual DbSet<Booking> Bookings { get; set; }
public virtual DbSet<Client> Clients { get; set; }