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