private ODataSqlQuery(SqlSyntax syntax, SqlExecutor executor) { Throw.IfNull(syntax, "syntax"); Throw.IfNull(executor, "executor"); this.syntax = syntax; this.executor = executor; }
protected ODataSqlQuery(Expression expression, SqlSyntax syntax, SqlExecutor executor) : this(syntax, executor) { Throw.IfNull(expression, "expression"); this.expression = expression; this.tableSql = null; }
protected ODataSqlQuery(string tableSql, SqlSyntax syntax, SqlExecutor executor) : this(syntax, executor) { Throw.If(string.IsNullOrEmpty(tableSql), "tableSql is required"); this.expression = Expression.Constant(this); this.tableSql = tableSql; }
/// <summary> /// Creates a context that uses the given <see cref="SqlSyntax"/> and <see cref="SqlExecutor"/> /// </summary> public ODataSqlContext(SqlSyntax syntax, SqlExecutor executor) { Throw.IfNull(syntax, "provider"); Throw.IfNull(executor, "executor"); this.syntax = syntax; this.executor = executor; }