File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,18 @@ public static IQueryable<T> AsQueryable<T>(this MongoCollection collection)
35
35
{
36
36
var provider = new MongoQueryProvider ( collection ) ;
37
37
return new MongoQueryable < T > ( provider ) ;
38
+ }
39
+
40
+ /// <summary>
41
+ /// Returns an instance of IQueryable{{T}} for a MongoCollection.
42
+ /// </summary>
43
+ /// <typeparam name="T">The type of the returned documents.</typeparam>
44
+ /// <param name="collection">The name of the collection.</param>
45
+ /// <returns>An instance of IQueryable{{T}} for a MongoCollection.</returns>
46
+ public static IQueryable < T > AsQueryable < T > ( this MongoCollection < T > collection )
47
+ {
48
+ var provider = new MongoQueryProvider ( collection ) ;
49
+ return new MongoQueryable < T > ( provider ) ;
38
50
}
39
51
}
40
52
}
You can’t perform that action at this time.
0 commit comments