예제 #1
0
        internal static ProjectedColumns ProjectColumns(Func <Expression, bool> fnCanBeColumn, Expression expression, string newAlias, TextWriter logger, params string[] existingAliases)
        {
            ColumnProjector projector = new ColumnProjector(fnCanBeColumn, expression, newAlias, logger, existingAliases);
            Expression      expr      = projector.Visit(expression);

            return(new ProjectedColumns(expr, projector.columns.AsReadOnly()));
        }
예제 #2
0
 private ProjectedColumns ProjectColumns(Expression expression, string newAlias, params string[] existingAliases)
 {
     return(ColumnProjector.ProjectColumns(this.CanBeColumn, expression, newAlias, Logger, existingAliases));
 }