using ApiMobileBelov.ModelBase; using Microsoft.EntityFrameworkCore; namespace ApiMobileBelov.BaseConnection { public class ApplicationContext: DbContext { public DbSet tableCategory { get; set; } public DbSet tableTraining { get; set; } public DbSet tableCategoryAndTraining { get; set; } public DbSet tableWorkout { get; set; } public DbSet tableCategoryAndTrainingAndWorkout { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseSqlServer(Constans.SqlConnection); } } }