Ejemplo n.º 1
0
 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);
 }