src/openCypherParser/AST/CypherVisitor.cs
/// <summary>
/// Helper function to call GetEntitiesFromReturnBodyByRef but then replace the alias with the QueryExpressionWithAlias's alias
/// E.g.  MATCH (p:person) WITH p as q. This will return entity type person with alias = q (instead of p)
/// </summary>
/// <param name="exprs"></param>
/// <returns></returns>
Helper function to call GetEntitiesFromReturnBodyByRef but then replace the alias with the QueryExpressionWithAlias's alias
E.g.  MATCH (p:person) WITH p as q. This will return entity type person with alias = q (instead of p)
Helper function to call GetEntitiesFromReturnBodyByRef but then replace the alias with the QueryExpressionWithAlias ' s alias E . g . MATCH ( p : person ) WITH p as q . This will return entity type person with alias = q ( instead of p )
private IEnumerable<Entity> GetDirectlyExposedEntitiesWithAliasApplied(IEnumerable<QueryExpressionWithAlias> exprs)
        {
            return GetDirectlyExposedEntities(exprs)
                .Select(kv =>
                {
                    var ent = kv.Value.Clone();
                    ent.Alias = kv.Key;
                    return ent;
                });
        }
private IEnumerable < Entity > GetDirectlyExposedEntitiesWithAliasApplied ( IEnumerable < QueryExpressionWithAlias > exprs ) { return GetDirectlyExposedEntities ( exprs ) . Select ( kv => { var ent = kv . Value . Clone ( ) ; ent . Alias = kv . Key ; return ent ; } ) ; }
Helper function to call GetEntitiesFromReturnBodyByRef but then replace the alias with the QueryExpressionWithAlias's alias
E.g.
Helper function to call GetEntitiesFromReturnBodyByRef but then replace the alias with the QueryExpressionWithAlias ' s alias E . g .
None
exprs
IEnumerable<QueryExpressionWithAlias>
None