C# Class System.Data.Entity.SqlServer.SqlGen.SymbolPair

The SymbolPair exists to solve the record flattening problem. SqlGenerator.Visit(DbPropertyExpression) Consider a property expression D(v, "j3.j2.j1.a.x") where v is a VarRef, j1, j2, j3 are joins, a is an extent and x is a columns. This has to be translated eventually into {j'}.{x'} The source field represents the outermost SqlStatement representing a join expression (say j2) - this is always a Join symbol. The column field keeps moving from one join symbol to the next, until it stops at a non-join symbol. This is returned by SqlGenerator.Visit(DbPropertyExpression), but never makes it into a SqlBuilder.
Inheritance: ISqlFragment
Exibir arquivo Open project: dotnet/ef6tools

Public Properties

Property Type Description
Column System.Data.Entity.SqlServer.SqlGen.Symbol
Source System.Data.Entity.SqlServer.SqlGen.Symbol

Public Methods

Method Description
SymbolPair ( System.Data.Entity.SqlServer.SqlGen.Symbol source, System.Data.Entity.SqlServer.SqlGen.Symbol column ) : System.Data.Entity.Core.Common.CommandTrees
WriteSql ( System.Data.Entity.SqlServer.SqlGen.SqlWriter writer, System.Data.Entity.SqlServer.SqlGen.SqlGenerator sqlGenerator ) : void

Method Details

SymbolPair() public method

public SymbolPair ( System.Data.Entity.SqlServer.SqlGen.Symbol source, System.Data.Entity.SqlServer.SqlGen.Symbol column ) : System.Data.Entity.Core.Common.CommandTrees
source System.Data.Entity.SqlServer.SqlGen.Symbol
column System.Data.Entity.SqlServer.SqlGen.Symbol
return System.Data.Entity.Core.Common.CommandTrees

WriteSql() public method

public WriteSql ( System.Data.Entity.SqlServer.SqlGen.SqlWriter writer, System.Data.Entity.SqlServer.SqlGen.SqlGenerator sqlGenerator ) : void
writer System.Data.Entity.SqlServer.SqlGen.SqlWriter
sqlGenerator System.Data.Entity.SqlServer.SqlGen.SqlGenerator
return void

Property Details

Column public_oe property

public Symbol,System.Data.Entity.SqlServer.SqlGen Column
return System.Data.Entity.SqlServer.SqlGen.Symbol

Source public_oe property

public Symbol,System.Data.Entity.SqlServer.SqlGen Source
return System.Data.Entity.SqlServer.SqlGen.Symbol