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