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