Adds dynamic filtering to EntityService (post filtering for GetAll) - updated the insert macro dialog to ensure that it only shows macros flagged for the rte when in rte mode, otherwise shows all of them. adds unit tests for dynamic queryable stuff.

This commit is contained in:
Shannon
2013-09-25 13:54:25 +10:00
parent f127d31928
commit 6c9fe2ebd0
10 changed files with 237 additions and 11 deletions

View File

@@ -11,6 +11,11 @@ using Umbraco.Web.Models;
namespace Umbraco.Web.Dynamics
{
//TODO: Much of this can move to Umbraco.Core.Dynamics - but somehow need to remove all the hard coded references to things like
// dynamicnull, etc...
//NOTE: The OrderBy stuff here seems to be a bit hacked with hard references to umbraco node objects so don't think it can be
// re-used which is why we have the OrderBy stuff that hasn't been hacked in teh Umbraco.Core.Dynamics
internal static class DynamicQueryable
{
public static IQueryable<T> Where<T>(this IQueryable<T> source, string predicate, params object[] values)