src/Shared/EntityFramework.Community.Shared/QueryResultFilter/QueryResultFilterManager.cs
/// <summary>Applies the filter described by result.</summary>
/// <param name="result">The result.</param>
/// <returns>An object.</returns>
Applies the filter described by result.
Applies the filter described by result .
public bool IsFilterRemoved(object result)
        {
            if (result != null)
            {
                var resultType = ObjectContext.GetObjectType(result.GetType());
                foreach (var filter in Filters)
                {
                    if (filter.IsEnabled && EntityFrameworkManager.IsAssignableFrom(resultType, filter.ElementType))
                    {
                        result = filter.ApplyFilter(result);
                        if (result == null)
                        {
                            return true;
                        }
                    }
                }
            }
            return false;
        }
public bool IsFilterRemoved ( object result ) { if ( result != null ) { var resultType = ObjectContext . GetObjectType ( result . GetType ( ) ) ; foreach ( var filter in Filters ) { if ( filter . IsEnabled && EntityFrameworkManager . IsAssignableFrom ( resultType , filter . ElementType ) ) { result = filter . ApplyFilter ( result ) ; if ( result == null ) { return true ; } } } } return false ; }
Applies the filter described by result.
Applies the filter described by result .
// Must break somewhere when already null!
None
result
object
None