strongly typed returned interfaces, next is the async mode.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using PoweredSoft.DynamicQuery.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace PoweredSoft.DynamicQuery.Extensions
|
||||
{
|
||||
public static class GroupResultExtensions
|
||||
{
|
||||
public static IQueryExecutionGroupResult<TRecord> GroupedResult<TRecord>(this IQueryExecutionResult<TRecord> source)
|
||||
{
|
||||
if (source is IQueryExecutionGroupResult<TRecord> ret)
|
||||
return ret;
|
||||
|
||||
throw new Exception("this result is not a grouped result");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user