using FlowerShopDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace FlowerShopDatabaseImplement { public class FlowerShopDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Initial Catalog=FlowerShopDatabaseFull;Integrated Security=True;MultipleActiveResultSets=True;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Components { set; get; } public virtual DbSet Bouquets { set; get; } public virtual DbSet BouquetComponents { set; get; } public virtual DbSet Orders { set; get; } public virtual DbSet Shops { set; get; } public virtual DbSet ShopBouquets { set; get; } } }