internal IQueryable <T> GetQuerable <T>() { if (typeof(T) == typeof(Category)) { return(Categories.AsQueryable() as IQueryable <T>); } if (typeof(T) == typeof(DataPoint)) { return(DataPoints.AsQueryable() as IQueryable <T>); } return(null); }