using InternetShopDatabase.Models; using Microsoft.EntityFrameworkCore; namespace InternetShopDatabase { public class InternetShopDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=tcp:127.0.0.1;Initial Catalog=internetShopBase;User ID=SA;Password=87cbn9y48392nu32;TrustServerCertificate=true;"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Orders { set; get; } public virtual DbSet Products { set; get; } } }