using HospitalDataBaseImplements.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HospitalDataBaseImplements { public class HospitalDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-0BJHUJC\SQLEXPRESS;Initial Catalog=GiftShopDatabaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Kurse { set; get; } public virtual DbSet Illnesses { set; get; } public virtual DbSet IllnessKurse { set; get; } public virtual DbSet IllnessSymptomses { set; get; } public virtual DbSet RecipesSymptoms { set; get; } public virtual DbSet RecipesProcedures { set; get; } public virtual DbSet Symptomses { set; get; } public virtual DbSet Recipes { set; get; } public virtual DbSet Medicines { set; get; } } }