using HotelDataBaseImplement.Models; using Microsoft.EntityFrameworkCore; using System.Reflection; namespace HotelDataBaseImplement { public class HotelDataBase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-7DB3VEN\SQLEXPRESS;Initial Catalog=HotelDataBase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } // DESKTOP-7DB3VEN // LAPTOP-M2G96S06 public virtual DbSet Conferences { set; get; } public virtual DbSet MealPlans { set; get; } public virtual DbSet Members { set; get; } public virtual DbSet Organisers { set; get; } public virtual DbSet ConferenceMembers { set; get; } public virtual DbSet MealPlanMembers { set; get; } public virtual DbSet ConferenceBookings { set; get; } public virtual DbSet Lunches { set; get; } public virtual DbSet ConferenceBookingLunches { set; get; } public virtual DbSet Rooms { set; get; } public virtual DbSet RoomLunches { set; get; } public virtual DbSet Headwaiters { set; get; } } }