using ElectronicsShopDataBaseImplement.Models; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; namespace ElectronicsShopDataBaseImplement { public class Database : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-O0N00SH\SQLEXPRESS;Initial Catalog=ElectronicsShopDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Clients { set; get; } public virtual DbSet Products { set; get; } public virtual DbSet Orders { set; get; } public virtual DbSet OrderProducts { set; get; } public virtual DbSet Employees { set; get; } public virtual DbSet CostItems { set; get; } public virtual DbSet Paymeants { get; set; } } }