public FilterTranslator(ICharStream input, SqlServerRestApi.TableSpec tableSpec, SqlServerRestApi.QuerySpec querySpec) : base(input) { this.tableSpec = tableSpec; this.querySpec = querySpec; this.querySpec.parameters = new System.Collections.Generic.LinkedList <System.Data.SqlClient.SqlParameter>(); _interp = new LexerATNSimulator(this, _ATN); }
public FilterTranslator(ICharStream input, SqlServerRestApi.TableSpec tableSpec, SqlServerRestApi.QuerySpec querySpec, string odataHelperSqlSchema = "odata") : base(input) { this.tableSpec = tableSpec; this.querySpec = querySpec; this.odataHelperSqlSchema = odataHelperSqlSchema; this.querySpec.parameters = new System.Collections.Generic.LinkedList <System.Data.SqlClient.SqlParameter>(); this.Interpreter = new LexerATNSimulator(this, _ATN, decisionToDFA, sharedContextCache); }
public static RequestHandler JQueryDataTables(this Microsoft.AspNetCore.Mvc.Controller ctrl, TableSpec tableSpec, IQueryPipe sqlQuery) { return(Table(ctrl, tableSpec, sqlQuery)); }
internal ODataHandler(SqlCommand cmd, IQueryPipe pipe, HttpResponse response, TableSpec tableSpec, string metadataUrl, Metadata metadata = Metadata.NONE, bool countOnly = false, bool returnSingleResult = false) : base(cmd, pipe, response, returnSingleResult) { this.tableSpec = tableSpec; this.metadata = metadata; this.metadataUrl = metadataUrl; this.countOnly = countOnly; }