internal virtual void Values(GremlinToSqlContext currentContext, List <string> propertyKeys) { if (propertyKeys.Count == 0) { Populate(GremlinKeyword.Star); } else { foreach (var property in propertyKeys) { Populate(property); } } GremlinValuesVariable newVariable = new GremlinValuesVariable(this, propertyKeys); currentContext.VariableList.Add(newVariable); currentContext.TableReferences.Add(newVariable); currentContext.SetPivotVariable(newVariable); }
internal void Values(GremlinVariable lastVariable, List <string> propertyKeys) { if (propertyKeys.Count == 0) { lastVariable.Populate(GremlinKeyword.Star); } else { foreach (var property in propertyKeys) { lastVariable.Populate(property); } } GremlinValuesVariable newVariable = new GremlinValuesVariable(lastVariable, propertyKeys); VariableList.Add(newVariable); TableReferences.Add(newVariable); SetPivotVariable(newVariable); }