using CanteenDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace CanteenDatabaseImplement { public class CanteenDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-AOSK1F5\SQLEXPRESS;Initial Catalog=CanteenDataBase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Cooks { set; get; } public virtual DbSet OrderCooks { set; get; } public virtual DbSet Dishes { set; get; } public virtual DbSet Lunches { set; get; } public virtual DbSet OrderLunches { set; get; } public virtual DbSet Managers { set; get; } public virtual DbSet Orders { set; get; } public virtual DbSet Products { set; get; } public virtual DbSet ProductCooks { set; get; } public virtual DbSet LunchProducts { set; get; } public virtual DbSet Roles { set; get; } public virtual DbSet Tablewares { set; get; } public virtual DbSet Visitors { set; get; } } }