You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: change to IQueryable<T> so that we can use it from the calls with a selector like GetAll(x => x.Name), right now it is bringing back the entire object and then doing the Select using Linq to Objects
46
-
protectedoverrideIEnumerable<T>GetAllQuery()
45
+
protectedoverrideIQueryable<T>GetAllQuery()
47
46
{
48
-
// return BaseQuery(); // we should be doing this so that it can stay a query and not pull into memory for the GetAllQuery with the selector param to use as well
// TODO: change to IQueryable<T> so that we can use it from the calls with a selector like GetAll(x => x.Name), right now it is bringing back the entire object and then doing the Select using Linq to Objects
// TODO: change to GetAllQuery which should be IQueryable<> so that the selector is done on the server side instead of inmemory with the resulting objects
76
-
returnGetAll(queryOptions)
77
-
.AsQueryable()
78
-
.Select(selector);
75
+
returnGetAllQuery(queryOptions)
76
+
.Select(selector)
77
+
.ToList();
79
78
}
80
79
81
80
// These are the actual implementation that the derived class needs to implement
// changed from .Count() to this to actually get the results and not just the Count of the query which won't necessarily use the selector at all and might do it all server side
0 commit comments