using SewingDressesDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace SewingDressesDatabaseImplement { public class SewingDressesDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=LAPTOP-J8AJ26MV\SQLEXPRESS;Initial Catalog=DressAtelierDatabaseFull30;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Components { get; set; } public virtual DbSet Dresses { get; set; } public virtual DbSet DressComponents { get; set; } public virtual DbSet Orders { get; set; } public virtual DbSet Clients { get; set; } public virtual DbSet Implements { get; set; } public virtual DbSet Messages { get; set; } } }