Skip to content

Commit 262c47a

Browse files
Merge pull request #435 from kgielow/topic-changeAsNoFilterParam
Change AsNoFilter extension method to take IQueryable<T> parameter
2 parents a91bfe3 + 81c5599 commit 262c47a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/shared/Z.EF.Plus.QueryFilterInterceptor.Shared/Extensions/IDbSet.AsNoFilter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// More projects: http://www.zzzprojects.com/
66
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
77

8-
using System.Data.Entity;
98
using System.Linq;
109

1110
namespace Z.EntityFramework.Plus
@@ -16,7 +15,7 @@ public static partial class QueryInterceptorFilterExtensions
1615
/// <typeparam name="T">The type of elements of the query.</typeparam>
1716
/// <param name="query">The filtered query from which the original query should be retrieved.</param>
1817
/// <returns>The orginal query before the context was filtered.</returns>
19-
public static IQueryable<T> AsNoFilter<T>(this IDbSet<T> query) where T : class
18+
public static IQueryable<T> AsNoFilter<T>(this IQueryable<T> query) where T : class
2019
{
2120
return QueryFilterManager.HookFilter(query, QueryFilterManager.DisableAllFilter);
2221
}

0 commit comments

Comments
 (0)