SqlAliasManager Class

Definition

A stateful manager for SQL aliases, capable of generating uniquified table aliases and rewriting them in post-processing. An instance of SqlAliasManager is valid for a single query compilation, and is owned by RelationalQueryCompilationContext.

public class SqlAliasManager
type SqlAliasManager = class
Public Class SqlAliasManager
Inheritance
SqlAliasManager

Constructors

SqlAliasManager()

Methods

GenerateTableAlias(ITableBase)

Generates an alias based on the given modelTable. All aliases produced by a given instance of SqlAliasManager are unique.

GenerateTableAlias(String)

Generates an alias based on the given name. All aliases produced by a given instance of SqlAliasManager are unique.

PostprocessAliases(Expression)

Performs a post-processing pass over aliases in the provided SQL tree, closing any gaps.

RemapTableAliases(IReadOnlySet<String>)

Given the list of table aliases currently in use in the SQL tree, produces a remapping for aliases within that list. Can be used to e.g. close gaps for tables which have been pruned, etc.

Applies to