using Microsoft.EntityFrameworkCore; using System.ComponentModel; using TaskTrackerDatabase.Models; using Task = TaskTrackerDatabase.Models.Task; namespace TaskTrackerDatabase { public class TaskTrackerDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-N8BRIPR\SQLEXPRESS;Initial Catalog=TaskTrackerDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Projects { set; get; } public virtual DbSet Organizations { set; get; } public virtual DbSet OrganizationProjects { set; get; } public virtual DbSet Tasks { set; get; } public virtual DbSet Users { set; get; } } }