2023-04-05 23:24:58 +04:00
|
|
|
|
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)
|
|
|
|
|
{
|
2023-04-07 00:53:55 +04:00
|
|
|
|
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-0BJHUJC\SQLEXPRESS;Initial Catalog=HospitalDatabaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
2023-04-05 23:24:58 +04:00
|
|
|
|
}
|
|
|
|
|
base.OnConfiguring(optionsBuilder);
|
|
|
|
|
}
|
|
|
|
|
public virtual DbSet<Kurses> Kurse { set; get; }
|
|
|
|
|
public virtual DbSet<Illness> Illnesses { set; get; }
|
|
|
|
|
public virtual DbSet<IllnessKurse> IllnessKurse { set; get; }
|
|
|
|
|
public virtual DbSet<IllnessSymptoms> IllnessSymptomses { set; get; }
|
|
|
|
|
public virtual DbSet<RecipesSymptoms> RecipesSymptoms { set; get; }
|
|
|
|
|
public virtual DbSet<RecipesProcedures> RecipesProcedures { set; get; }
|
|
|
|
|
public virtual DbSet<Symptoms> Symptomses { set; get; }
|
|
|
|
|
public virtual DbSet<Recipes> Recipes { set; get; }
|
|
|
|
|
public virtual DbSet<Medicines> Medicines { set; get; }
|
2023-04-06 21:56:38 +04:00
|
|
|
|
public virtual DbSet<Procedures> Procedures { set; get; }
|
|
|
|
|
public virtual DbSet<Client> Clients { set; get; }
|
|
|
|
|
|
2023-04-05 23:24:58 +04:00
|
|
|
|
}
|
|
|
|
|
}
|