public static Task <IEnumerable <T> > Run <T>(
     this IConnection connection,
     IQueryableList <T> expression,
     CancellationToken cancellationToken = default)
 {
     return(connection.Run(expression.Compile(), cancellationToken: cancellationToken));
 }
Beispiel #2
0
 public Task <IEnumerable <T> > Run <T>(
     IQueryableList <T> query,
     Dictionary <string, object> variables = null,
     bool refresh           = false,
     TimeSpan?cacheDuration = null,
     string regionName      = null,
     CancellationToken cancellationToken = default)
 {
     return(Run(query.Compile(), variables, refresh, cacheDuration, regionName, cancellationToken));
 }
        public static void AssertExpressionQueryEqual <T>(Expression expected, IQueryableList <T> actual)
        {
            var actualCompiledQuery = actual.Compile();

            AssertCompiledQueryExpressionEqual(expected, actualCompiledQuery);
        }
Beispiel #4
0
 public static Task <IEnumerable <T> > Run <T>(
     this IConnection connection,
     IQueryableList <T> expression)
 {
     return(connection.Run(expression.Compile()));
 }