/// <summary> /// Load all the Paths objects and their associated TrackPoints objects /// </summary> public void LoadPoints() { using (TracksContext context = new TracksContext()) { context.Paths.Include(s => s.TrackPoints).Load(); Routes = context.Paths.Local; } }
public TraineesController(TracksContext context) { _context = context; }
public CoursesController(TracksContext context) { _context = context; }
public TracksRepoService(TracksContext context) { this.context = context; }
public GenericRepository(TracksContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }