using BankDataBaseImplement.Models; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; namespace BankDataBaseImplement { public class BankDataBase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-VG5USAH\SQLEXPRESS;Initial Catalog=HotelDataBaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Conferences { set; get; } public virtual DbSet Rooms { set; get; } public virtual DbSet Additions { set; get; } public virtual DbSet ConferenceBookings { set; get; } public virtual DbSet Members { set; get; } public virtual DbSet Credits { set; get; } public virtual DbSet Clercs { set; get; } public virtual DbSet Clients { set; get; } public virtual DbSet ConferenceMembers { set; get; } public virtual DbSet RoomCredits { set; get; } public virtual DbSet AdditionsMembers { set; get; } public virtual DbSet ConferenceBookingDinners { set; get; } } }