strongly typed returned interfaces, next is the async mode.

This commit is contained in:
David Lebee
2019-03-19 22:54:15 -05:00
parent 61642eee18
commit 9e6dc08e53
13 changed files with 316 additions and 260 deletions
@@ -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");
}
}
}