using Microsoft.EntityFrameworkCore; using SchoolDatabaseImplement.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SchoolDatabaseImplement { public class SchoolDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=firsovpk;Initial Catalog=SchoolDataBase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True" ); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Users { set; get; } public virtual DbSet Lessons { set; get; } public virtual DbSet InterestLessons { set; get; } public virtual DbSet Interests { set; get; } public virtual DbSet Achievements { set; get; } public virtual DbSet Clubs { set; get; } public virtual DbSet ClubLessons { set; get; } public virtual DbSet Materials { set; get; } public virtual DbSet InterestMaterials { set; get; } } }