1 type derived from Symbol
System.Data.Entity (1)
System\Data\SqlClient\SqlGen\JoinSymbol.cs (1)
40internal sealed class JoinSymbol : Symbol
10 instantiations of Symbol
System.Data.Entity (10)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (10)
2484Symbol row_numberSymbol = new Symbol(row_numberName, IntegerType); 2531resultFromSymbol = new Symbol(e.Input.VariableName, e.Input.VariableType, input.OutputColumns, false); 2858fromSymbol = new Symbol(inputVarName, inputVarType); 3185fromSymbol = new Symbol(input.VariableName, input.VariableType, sqlSelectStatement.OutputColumns, sqlSelectStatement.OutputColumnsRenamed); 3191fromSymbol = new Symbol(input.VariableName, input.VariableType, sqlSelectStatement.OutputColumns, sqlSelectStatement.OutputColumnsRenamed); 3208fromSymbol = new Symbol(input.VariableName, input.VariableType); 3284Symbol column = new Symbol(member.Name, member.TypeUsage); 3352Symbol fromSymbol = new Symbol("X", TypeHelpers.GetElementTypeUsage(left.ResultType), leftSelectStatement.OutputColumns, true); 3537columnSymbol = ((inputSymbol != null) && symbol.OutputColumnsRenamed)? inputSymbol : new Symbol(columnName, null); 3781fromSymbol = new Symbol(inputVarName, inputVarType, oldStatement.OutputColumns, oldStatement.OutputColumnsRenamed);
114 references to Symbol
System.Data.Entity (114)
System\Data\SqlClient\SqlGen\JoinSymbol.cs (14)
42private List<Symbol> columnList; 43internal List<Symbol> ColumnList 49columnList = new List<Symbol>(); 56private List<Symbol> extentList; 57internal List<Symbol> ExtentList 62private List<Symbol> flattenedExtentList; 63internal List<Symbol> FlattenedExtentList 69flattenedExtentList = new List<Symbol>(); 76private Dictionary<string, Symbol> nameToExtent; 77internal Dictionary<string, Symbol> NameToExtent 89public JoinSymbol(string name, TypeUsage type, List<Symbol> extents) 92extentList = new List<Symbol>(extents.Count); 93nameToExtent = new Dictionary<string, Symbol>(extents.Count, StringComparer.OrdinalIgnoreCase); 94foreach (Symbol symbol in extents)
System\Data\SqlClient\SqlGen\OptionalColumn.cs (2)
30private readonly Symbol m_symbol; 49internal OptionalColumn(SymbolUsageManager usageManager, Symbol symbol)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (59)
143/// To defer the renaming choices, we use symbols <see cref="Symbol"/>. These 1183Symbol fromSymbol; 1418Symbol fromSymbol; 1696Symbol fromSymbol; 2233Symbol fromSymbol; 2262Dictionary<string, Symbol> newColumns; 2353Symbol columnSymbol = symbolPair.Column.Columns[e.Property.Name]; 2366Symbol symbol = instanceSql as Symbol; 2367Symbol colSymbol; 2461Symbol fromSymbol; 2477List<Symbol> inputColumns = AddDefaultColumns(input); 2484Symbol row_numberSymbol = new Symbol(row_numberName, IntegerType); 2507Symbol resultFromSymbol = null; 2562Symbol fromSymbol; 2618/// <returns>A <see cref="Symbol"/>.</returns> 2629Symbol result = symbolTable.Lookup(e.VariableName); 2843string inputVarName, TypeUsage inputVarType, out Symbol fromSymbol) 2922Symbol fromSymbol; 3027result.AllJoinExtents = new List<Symbol>(); 3137Symbol fromSymbol = null; 3149List<Symbol> columns = AddDefaultColumns(sqlSelectStatement); 3154List<Symbol> extents = sqlSelectStatement.FromExtents; 3221List<Symbol> extents = new List<Symbol>(); 3257private ISqlFragment VisitNewInstanceExpression(DbNewInstanceExpression e, bool aliasesNeedRenaming, out Dictionary<string, Symbol> newColumns) 3264newColumns = new Dictionary<string, Symbol>(e.Arguments.Count); 3284Symbol column = new Symbol(member.Name, member.TypeUsage); 3352Symbol fromSymbol = new Symbol("X", TypeHelpers.GetElementTypeUsage(left.ResultType), leftSelectStatement.OutputColumns, true); 3391private void AddColumns(SqlSelectStatement selectStatement, Symbol symbol, 3392List<Symbol> columnList, Dictionary<string, Symbol> columnDictionary) 3400foreach (Symbol sym in joinSymbol.ExtentList) 3414foreach (Symbol joinColumn in joinSymbol.ColumnList) 3477selectStatement.OutputColumns = new Dictionary<string, Symbol>(); 3501private OptionalColumn CreateOptionalColumn(Symbol inputColumnSymbol, Symbol column) 3520private void AddColumn(SqlSelectStatement selectStatement, Symbol symbol, 3521List<Symbol> columnList, Dictionary<string, Symbol> columnDictionary, string columnName) 3528Symbol inputSymbol = null; 3532Symbol columnSymbol; 3595private List<Symbol> AddDefaultColumns(SqlSelectStatement selectStatement) 3600List<Symbol> columnList = new List<Symbol>(); 3604Dictionary<string, Symbol> columnDictionary = new Dictionary<string, Symbol>(StringComparer.OrdinalIgnoreCase); 3606foreach (Symbol symbol in selectStatement.FromExtents) 3615/// <see cref="AddFromSymbol(SqlSelectStatement, string, Symbol, bool)"/> 3620private void AddFromSymbol(SqlSelectStatement selectStatement, string inputVarName, Symbol fromSymbol) 3660private void AddFromSymbol(SqlSelectStatement selectStatement, string inputVarName, Symbol fromSymbol, bool addToSymbolTable) 3712/// <see cref="CreateNewSelectStatement(SqlSelectStatement, string, TypeUsage, bool, out Symbol)"/> 3720string inputVarName, TypeUsage inputVarType, out Symbol fromSymbol) 3747string inputVarName, TypeUsage inputVarType, bool finalizeOldStatement, out Symbol fromSymbol) 3754List<Symbol> columns = AddDefaultColumns(oldStatement); 4093Symbol fromSymbol; 4126List<Symbol> defaultColumns = AddDefaultColumns(result); 4129foreach (Symbol symbol in defaultColumns) 4151Symbol fromSymbol;
System\Data\SqlClient\SqlGen\SqlSelectStatement.cs (12)
66internal Dictionary<string, Symbol> OutputColumns 72internal List<Symbol> AllJoinExtents 80private List<Symbol> fromExtents; 81internal List<Symbol> FromExtents 87fromExtents = new List<Symbol>(); 93private Dictionary<Symbol, bool> outerExtents; 94internal Dictionary<Symbol, bool> OuterExtents 100outerExtents = new Dictionary<Symbol, bool>(); 199foreach (Symbol outerExtent in outerExtents.Keys) 204foreach (Symbol symbol in joinSymbol.FlattenedExtentList) 221List<Symbol> extentList = this.AllJoinExtents ?? this.fromExtents; 224foreach (Symbol fromAlias in extentList)
System\Data\SqlClient\SqlGen\Symbol.cs (8)
35/// This allows <see cref="SqlGenerator.AddFromSymbol(SqlSelectStatement, string, Symbol, bool)"/> to add the column list 46private Dictionary<string, Symbol> columns; 47internal Dictionary<string, Symbol> Columns 53columns = new Dictionary<string, Symbol>(StringComparer.OrdinalIgnoreCase); 62private Dictionary<string, Symbol> outputColumns; 63internal Dictionary<string, Symbol> OutputColumns 69outputColumns = new Dictionary<string, Symbol>(StringComparer.OrdinalIgnoreCase); 123public Symbol(string name, TypeUsage type, Dictionary<string, Symbol> outputColumns, bool outputColumnsRenamed)
System\Data\SqlClient\SqlGen\SymbolPair.cs (4)
39public Symbol Source; 40public Symbol Column; 42public SymbolPair(Symbol source, Symbol column)
System\Data\SqlClient\SqlGen\SymbolTable.cs (7)
28/// <item><see cref="Symbol"/> represents tables (extents/nested selects/unnests)</item> 30/// <item><see cref="Symbol"/> columns.</item> 38private List<Dictionary<string, Symbol>> symbols = new List<Dictionary<string, Symbol>>(); 42symbols.Add(new Dictionary<string, Symbol>(StringComparer.OrdinalIgnoreCase)); 50internal void Add(string name, Symbol value) 55internal Symbol Lookup(string name)
System\Data\SqlClient\SqlGen\SymbolUsageManager.cs (8)
35private readonly Dictionary<Symbol, BoolWrapper> optionalColumnUsage = new Dictionary<Symbol, BoolWrapper>(); 37internal bool ContainsKey(Symbol key) 42internal bool TryGetValue(Symbol key, out bool value) 55internal void Add(Symbol sourceSymbol, Symbol symbolToAdd) 65internal void MarkAsUsed(Symbol key) 73internal bool IsUsed(Symbol key)