Exemplo n.º 1
0
 public XqlParser(string xqlQuery, XDatabaseContext workflow)
 {
     EnsureLoaded();
     _scanner           = new XqlScanner(xqlQuery);
     _workflow          = workflow;
     _currentlyBuilding = new Stack <IUsage>();
 }
Exemplo n.º 2
0
 public static IEnumerable <string> EscapedColumnList(IXTable source, Type requiredType = null)
 {
     return(source.Columns
            .Where((col) => (requiredType == null || col.ColumnDetails.Type == requiredType))
            .Select((col) => XqlScanner.Escape(col.ColumnDetails.Name, TokenType.ColumnName)));
 }