using Microsoft.EntityFrameworkCore; using SchoolDatabaseImplement.Models; using System.Collections.Generic; namespace SchoolDatabaseImplement { public class SchoolDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=LAPTOP-5NJEOK79\SQLEXPRESS;Database=SchoolDataBaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Clients { set; get; } public virtual DbSet CircleLessons { set; get; } public virtual DbSet Employees { set; get; } public virtual DbSet Payments { set; get; } public virtual DbSet Expenses { set; get; } public virtual DbSet Circles { set; get; } public virtual DbSet Lessons { set; get; } public virtual DbSet CircleExpenses { set; get; } } }