示例#1
0
        protected internal override string CompileQuery()
        {
            var query = _query.StartsWith(".") ? _query.Remove(0, 1) : _query;
            var baseQ = _queryBase.CompileQuery();

            if ((!string.IsNullOrWhiteSpace(baseQ) && !baseQ.EndsWith(".")))
            {
                query = $".{query}";
            }
            return(baseQ + query);
        }
 public static string CompileQuery(this GremlinQuery query)
 {
     return(query.CompileQuery());
 }