using PlumbingRepairDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace PlumbingRepairDatabaseImplement { public class PlumbingRepairDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Server=localhost\SQLEXPRESS;Database=PlumbingRepairHard;Trusted_Connection=True;"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Components { set; get; } public virtual DbSet Works { set; get; } public virtual DbSet WorkComponents { set; get; } public virtual DbSet Orders { set; get; } public virtual DbSet Shops { set; get; } public virtual DbSet ShopWorks { set; get; } public virtual DbSet Clients { set; get; } public virtual DbSet Implementers { set; get; } public virtual DbSet Messages { set; get; } } }