예제 #1
0
 private static ProjectedColumns ProjectColumns(Expression expression, string newAlias, params string[] existingAliases)
 {
     return(ColumnProjector.ProjectColumns(expression, newAlias, existingAliases));
 }
예제 #2
0
        internal static ProjectedColumns ProjectColumns(Expression expression, string newAlias, IEnumerable <string> existingAliases)
        {
            ColumnProjector projector = new ColumnProjector(expression, newAlias, existingAliases);

            return(new ProjectedColumns(projector.Visit(expression), projector._columns.AsReadOnly()));
        }