예제 #1
0
 /// <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;
 }
예제 #3
0
 public CoursesController(TracksContext context)
 {
     _context = context;
 }
예제 #4
0
 public TracksRepoService(TracksContext context)
 {
     this.context = context;
 }
예제 #5
0
 public GenericRepository(TracksContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }