public IEnumerable <FederalDistrict> FederalDistricts() { var conn = configurationRoot.GetConnectionString("EFCoreTestContext"); optionsBuilder.UseSqlServer(conn); using var ctx = new EFCoreTestContext(optionsBuilder.Options); return(ctx.FederalDistricts.Include(x => x.FederalSubjects).ToList()); }
public FederalSubjectsController(EFCoreTestContext context) { _context = context; }
public ArticlesController(EFCoreTestContext context) { _context = context; }
public FederalDistrictsController(EFCoreTestContext context) { _context = context; }