-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding queryable extensions to DataServiceQuery<T> #2475
base: release-7.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Microsoft.Spatial | ||
{ | ||
using System.Linq; | ||
using System.Runtime.CompilerServices; | ||
|
||
/// <summary> | ||
/// Extension methods for <see cref="IOrderedQueryable{T}"/> | ||
/// </summary> | ||
/// <threadsafety static="true"/> | ||
public static class OrderedQueryableExtensions | ||
{ | ||
/// <summary> | ||
/// Returns <paramref name="queryable"/> typed as <see cref="IOrderedQueryable{T}"/> | ||
/// </summary> | ||
/// <typeparam name="T">The type of the elements of <paramref name="queryable"/></typeparam> | ||
/// <param name="queryable">The queryable to type as <see cref="IOrderedQueryable{T}"/></param> | ||
/// <returns>The input queryable typed as <see cref="IOrderedQueryable{T}"/></returns> | ||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public static IOrderedQueryable<T> AsOrderedQueryable<T>(this IOrderedQueryable<T> queryable) | ||
{ | ||
return queryable; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Microsoft.Spatial | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. copyright |
||
using System.Linq; | ||
using System.Runtime.CompilerServices; | ||
|
||
/// <summary> | ||
/// Extension methods for <see cref="IQueryable{T}"/> | ||
/// </summary> | ||
/// <threadsafety static="true"/> | ||
public static class QueryableExtensions | ||
{ | ||
/// <summary> | ||
/// Returns <paramref name="queryable"/> typed as <see cref="IQueryable{T}"/> | ||
/// </summary> | ||
/// <typeparam name="T">The type of the elements of <paramref name="queryable"/></typeparam> | ||
/// <param name="queryable">The queryable to type as <see cref="IQueryable{T}"/></param> | ||
/// <returns>The input queryable typed as <see cref="IQueryable{T}"/></returns> | ||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public static IQueryable<T> AsQueryable<T>(this IQueryable<T> queryable) | ||
{ | ||
return queryable; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any reason why do we add this in the Microsoft.Spatial project. |
||
} | ||
} |
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason why do we add this in the Microsoft.Spatial project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1