public static StringBuilder QueryString <TSource, TResult>( ISelectGnerate selectGnerate, IFrommGnerate formGnerate, IWhereGnerate whereGnerate, Expression <Func <TSource, TResult> > selectExpression, Expression formExpression, Expression <Func <TSource, bool> > whereExpression) { StringBuilder builder = new StringBuilder(); builder.AppendLine(selectGnerate.Explain(selectExpression)); builder.AppendLine(formGnerate.Explain(formExpression)); builder.AppendLine(whereGnerate.Explain(whereExpression)); return(builder); }
public static StringBuilder Query <TSource, TResult>(this IQueryable <TSource> source, ISelectGnerate selectGnerate, IFrommGnerate formGnerate, IWhereGnerate whereGnerate, Expression <Func <TSource, TResult> > selectExpression, Expression <Func <TSource, bool> > whereExpression) { return(QueryString(selectGnerate, formGnerate, whereGnerate, selectExpression, source.Expression, whereExpression)); }