src/Shared/EntityFramework/Core/Common/EntitySql/SemanticResolver.cs
// <summary>
// Returns alias name from <paramref name="aliasedExpr" /> ast node if it contains an alias,
// otherwise creates a new alias name based on the <paramref name="aliasedExpr" />.Expr or
// <paramref
//     name="convertedExpression" />
// information.
// </summary>
Returns alias name from  ast node if it contains an alias,
otherwise creates a new alias name based on the .Expr or

information.
Returns alias name from ast node if it contains an alias otherwise creates a new alias name based on the . Expr or information .
internal string InferAliasName(AliasedExpr aliasedExpr, DbExpression convertedExpression)
        {
            if (aliasedExpr.Alias != null)
            {
                return aliasedExpr.Alias.Name;
            }
            var id = aliasedExpr.Expr as Identifier;
            if (null != id)
            {
                return id.Name;
            }
            var dotExpr = aliasedExpr.Expr as DotExpr;
            string[] names;
            if (null != dotExpr
                && dotExpr.IsMultipartIdentifier(out names))
            {
                return names[names.Length - 1];
            }
            return CreateNewAlias(convertedExpression);
        }
internal string InferAliasName ( AliasedExpr aliasedExpr , DbExpression convertedExpression ) { if ( aliasedExpr . Alias != null ) { return aliasedExpr . Alias . Name ; } var id = aliasedExpr . Expr as Identifier ; if ( null != id ) { return id . Name ; } var dotExpr = aliasedExpr . Expr as DotExpr ; string [ ] names ; if ( null != dotExpr && dotExpr . IsMultipartIdentifier ( out names ) ) { return names [ names . Length - 1 ] ; } return CreateNewAlias ( convertedExpression ) ; }
Returns alias name from  ast node if it contains an alias,
otherwise creates a new alias name based on the .Expr or
Returns alias name from ast node if it contains an alias otherwise creates a new alias name based on the . Expr or
aliasedExpr
AliasedExpr
convertedExpression
DbExpression