using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using TypographyDatabaseImplement.Models; namespace TypographyDatabaseImplement { public class TypographyDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=localhost\SQLEXPRESS;Initial Catalog=TypographyDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Components { set; get; } public virtual DbSet Printeds { set; get; } public virtual DbSet PrintedComponents { set; get; } public virtual DbSet Orders { set; get; } } }