using DatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace DatabaseImplement { public class Database : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=.\SQLEXPRESS;Initial Catalog=ProvidersDatabase;Integrated Security=True;MultipleActiveResultSets=True;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Providers { get; set; } public virtual DbSet OrganisationTypes { get; set; } } }