Example #1
0
        private IEnumerable <Ride> GetSqlRides()
        {
            Console.WriteLine("Fetching rides from sql...");
            var dbContext = new MyShuttleDashboardContext();
            var sqlRides  = dbContext.Rides.Include("Vehicle").OrderBy(r => r.StartDateTime).ToList();

            Console.WriteLine("Fetched {0} rides from sql", sqlRides.Count);
            return(sqlRides);
        }
Example #2
0
 public DriverFactoryQuery(MyShuttleDashboardContext ctx)
 {
     _ctx = ctx;
 }
 public RideFactoryQuery(MyShuttleDashboardContext db)
 {
     _ctx = db;
 }
 public RidesPerMonthYearVehicleQuery(MyShuttleDashboardContext dbCtx) : base(dbCtx)
 {
 }
 public RidesBetweenDatesQuery(MyShuttleDashboardContext dbCtx) : base(dbCtx)
 {
 }
 public TopDriversQuery(MyShuttleDashboardContext ctx) : base(ctx)
 {
     _ids = new List <int>();
 }
Example #7
0
 public TopDriversQuery(MyShuttleDashboardContext ctx) : base(ctx)
 {
     _ids = new List<int>();
 }
 public RidesPerMonthYearVehicleQuery(MyShuttleDashboardContext dbCtx) : base(dbCtx)
 {
 }
 public DriverFactoryQuery(MyShuttleDashboardContext ctx)
 {
     _ctx = ctx;
 }
Example #10
0
 protected BaseQuery(MyShuttleDashboardContext ctx)
 {
     _context = ctx;
 }
Example #11
0
 protected BaseQuery(MyShuttleDashboardContext ctx)
 {
     _context = ctx;
 }
Example #12
0
 public RidesBetweenDatesQuery(MyShuttleDashboardContext dbCtx) : base(dbCtx)
 {
 }
Example #13
0
 public DriverByIdQuery(MyShuttleDashboardContext dbCtx) : base(dbCtx)
 {
     _includeRides = false;
 }
Example #14
0
 public DriverByIdQuery(MyShuttleDashboardContext dbCtx) : base(dbCtx)
 {
     _includeRides = false;
 }