using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using BookshopDatabaseImplement.Models; namespace BookshopDatabaseImplement { public class BookshopDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-0CI5KVE\SQLEXPRESS;Initial Catalog=BookshopDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Authors { set; get; } public virtual DbSet Books { set; get; } public virtual DbSet Genres { set; get; } public virtual DbSet Instances { set; get; } public virtual DbSet Orders { set; get; } public virtual DbSet Publishers { set; get; } public virtual DbSet Reviews { set; get; } public virtual DbSet Users { set; get; } } }