示例#1
0
        internal WMatchClause GetMatchClause()
        {
            var newMatchClause = new WMatchClause();

            foreach (var path in PathList)
            {
                newMatchClause.Paths.Add(SqlUtil.GetMatchPath(path));
            }
            return(newMatchClause.Paths.Count == 0 ? null : newMatchClause);
        }
示例#2
0
 public WMatchPath ToMatchPath()
 {
     if (!(SinkVariable is GremlinFreeVertexVariable))
     {
         SinkVariable = null;
     }
     if (!(SourceVariable is GremlinFreeVertexVariable))
     {
         SourceVariable = null;
     }
     return(SqlUtil.GetMatchPath(this));
 }