Esempio n. 1
0
        private ODataSqlQuery(SqlSyntax syntax, SqlExecutor executor)
        {
            Throw.IfNull(syntax, "syntax");
            Throw.IfNull(executor, "executor");

            this.syntax   = syntax;
            this.executor = executor;
        }
Esempio n. 2
0
        protected ODataSqlQuery(Expression expression, SqlSyntax syntax, SqlExecutor executor)
            : this(syntax, executor)
        {
            Throw.IfNull(expression, "expression");

            this.expression = expression;
            this.tableSql   = null;
        }
Esempio n. 3
0
        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;
        }