internal virtual void Union(ref GremlinToSqlContext currentContext, List <GremlinToSqlContext> unionContexts) { GremlinUnionVariable newVariable = new GremlinUnionVariable(unionContexts, GremlinUtil.GetContextListType(unionContexts)); currentContext.VariableList.Add(newVariable); currentContext.TableReferences.Add(newVariable); currentContext.SetPivotVariable(newVariable); }
internal virtual void Union(ref GremlinToSqlContext currentContext, List <GremlinToSqlContext> unionContexts) { GremlinTableVariable newVariable = GremlinUnionVariable.Create(unionContexts); foreach (var unionContext in unionContexts) { unionContext.HomeVariable = newVariable; } currentContext.VariableList.Add(newVariable); currentContext.TableReferences.Add(newVariable); currentContext.SetPivotVariable(newVariable); }