using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AutoCenterDatabaseImplement.Models; namespace AutoCenterDatabaseImplement { public class AutoCenterDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-K0U29OV;Initial Catalog=AutoCenter;Integrated Security=True;MultipleActiveResultSets=True;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet CarBrands { get; set; } public virtual DbSet PresellingWorks { get; set; } public virtual DbSet Cars { get; set; } public virtual DbSet Purchases { get; set; } public virtual DbSet Shops{ set; get; } public virtual DbSet Users{ set; get; } public virtual DbSet Wishes { get; set; } public virtual DbSet Equipments { get; set; } } }