src/openCypherParser/AST/Expressions/QueryExpressionExtensions.cs
/// <summary>
/// If expr is a direct return of an entity, return it, otherwise, return null
/// </summary>
/// <param name="expr"></param>
/// <returns></returns>
If expr is a direct return of an entity, return it, otherwise, return null
If expr is a direct return of an entity return it otherwise return null
public static Entity TryGetDirectlyExposedEntity(this QueryExpression expr)
        {
            if (expr is QueryExpressionProperty)
            {
                var queryEntityExpr = expr as QueryExpressionProperty;
                var entity = queryEntityExpr.Entity;
                return entity;
            }
            return null;
        }
public static Entity TryGetDirectlyExposedEntity ( this QueryExpression expr ) { if ( expr is QueryExpressionProperty ) { var queryEntityExpr = expr as QueryExpressionProperty ; var entity = queryEntityExpr . Entity ; return entity ; } return null ; }
If expr is a direct return of an entity, return it, otherwise, return null
If expr is a direct return of an entity return it otherwise return null
None
QueryExpression
this
expr
None