using PizzeriaDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; namespace PizzeriaDatabaseImplement { public class PizzeriaDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (!optionsBuilder.IsConfigured) { optionsBuilder.UseSqlServer(@"Data Source=SHADOWIK\SHADOWIK;Initial Catalog=PizzeriaHardDatabase;Integrated Security=True;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Components { set; get; } public virtual DbSet Pizzas { set; get; } public virtual DbSet PizzaComponents { set; get; } public virtual DbSet Orders { set; get; } public virtual DbSet Clients { set; get; } public virtual DbSet Implementers { set; get; } public virtual DbSet Shops { set; get; } public virtual DbSet ShopPizzas { set; get; } public virtual DbSet MessageInfos { set; get; } } }