using HotelDataBaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace HotelDataBaseImplement { public class HotelDataBase : 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 MealPlans { set; get; } public virtual DbSet ConferenceBookings { set; get; } public virtual DbSet Members { set; get; } public virtual DbSet Dinners { set; get; } public virtual DbSet Organisers { set; get; } public virtual DbSet Headwaiters { set; get; } public virtual DbSet ConferenceMembers { set; get; } public virtual DbSet RoomDinners { set; get; } public virtual DbSet MealPlanMembers { set; get; } public virtual DbSet ConferenceBookingDinners { set; get; } } }