/// <summary> /// Prepares the <see cref="Expression"/> befor being transformed<para/> /// </summary> /// <param name="expression">The <see cref="Expression"/></param> /// <returns>A <see cref="System.Linq.Expressions.Expression"/></returns> protected virtual Expression Prepare(Expression expression) { var expression1 = expression.ReplaceNonGenericQueryArgumentsByGenericArguments(); var queryableExpression = expression1.ReplaceResourceDescriptorsByQueryable(_typeResolver, _queryableProvider); return(queryableExpression); }
/// <summary> /// Prepares the <see cref="RemoteLinq.Expression"/> befor being transformed.<para/> /// </summary> /// <param name="expression">The <see cref="RemoteLinq.Expression"/>.</param> /// <returns>A <see cref="SystemLinq.Expression"/>.</returns> protected virtual RemoteLinq.Expression Prepare(RemoteLinq.Expression expression) => expression .ReplaceNonGenericQueryArgumentsByGenericArguments() .ReplaceResourceDescriptorsByQueryable(_queryableProvider, _context.TypeResolver);