GraphView.TranslateMatchClauseVisitor.IsNodeTable C# (CSharp) Method

IsNodeTable() private method

Checks whether a table reference in the FROM clause is a node table. In GraphView's SELECT statement, a table reference in the FROM clause could also be a regular table.
private IsNodeTable ( GraphView.WTableReferenceWithAlias table ) : bool
table GraphView.WTableReferenceWithAlias The table reference in the FROM clause
return bool
        private bool IsNodeTable(WTableReferenceWithAlias table)
        {
            var namedTable = table as WNamedTableReference;
            if (namedTable == null)
                return false;
            var tableschema = namedTable.TableObjectName.SchemaIdentifier != null
                ? namedTable.TableObjectName.SchemaIdentifier.Value
                : "dbo";
            var tableName = namedTable.TableObjectName.BaseIdentifier.Value;
            return
                _graphMetaData.ColumnsOfNodeTables.Keys.Contains(
                    new Tuple<string, string>(tableschema.ToLower(CultureInfo.CurrentCulture),
                        tableName.ToLower(CultureInfo.CurrentCulture)));
        }