private StringBuilder QueryString <TSource, TResult>( ISelectGnerate selectGnerate, IFrommGnerate formGnerate, IWhereParameterGenerate whereGnerate, Expression <Func <TSource, TResult> > selectExpression, Expression formExpression, Expression <Func <TSource, bool> > whereExpression, IDictionary <string, object> dic) { StringBuilder build = new StringBuilder(); build.AppendLine(selectGnerate.Explain(selectExpression)); build.AppendLine(formGnerate.Explain(formExpression)); build.AppendLine(whereGnerate.Explain(whereExpression, dic)); return(build); }
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); }