Пример #1
0
        public void SetResult(RbacSqlQueryEngine engine)
        {
            QueryType           = engine.Parser.QueryType.ToString();
            Log                 = engine.Parser.AllErrors + engine.AllErrors;
            Columns             = engine.Parser.Columns;
            Errors              = engine.Parser.AllErrors + engine.AllErrors;
            IsParsed            = engine.Parser.IsParsed;
            IsNotSupported      = engine.Parser.IsNotSupported;
            IsZeroSelectColumn  = engine.Parser.IsZeroSelectColumn;
            IsPermissionApplied = engine.Parser.IsPermissionApplied;
            IsParsingSkipped    = engine.Parser.IsParsingSkipped;
            OriginalQuery       = engine.Parser.OriginalQuery;
            ParsedQuery         = engine.Parser.ParsedQuery;
            ParsedQueryStage1   = engine.Parser.ParsedQueryStage1;
            ParsedMethod        = engine.Parser.ParsedMethod.ToString();
            QueryType           = engine.Parser.QueryType.ToString();

            IsEngineExecuted  = engine.IsExecuted;
            IsEngineDebugMode = engine.IsDebugMode;
            Table             = engine.Table;
        }
Пример #2
0
 public RbacEngineWebResponse(RbacSqlQueryEngine engine)
 {
     SetResult(engine);
 }