/// <summary> /// Initializes a new instance of the <see cref="FromSourceQueryProvider"/> class. /// </summary> /// <param name="dbCtx">The database context.</param> /// <param name="source">The query source.</param> /// <param name="queryParamsStore">The store of query parameters.</param> /// <exception cref="System.ArgumentNullException"> /// Throw if source or database context is NULL. /// </exception> /// <exception cref="System.ArgumentException">Throw when source has invalid value.</exception> internal FromSourceQueryProvider(DatabaseContext dbCtx, string source, QueryParametersStore queryParamsStore = null) : base(queryParamsStore) { _dbCtx = dbCtx ?? throw new ArgumentNullException(nameof(dbCtx)); source = source ?? throw new ArgumentNullException(nameof(source)); _source = string.IsNullOrWhiteSpace(source) ? throw new ArgumentException(nameof(source)) : source; }
protected internal QueryTranslator(QueryParametersStore queryParamsStore) { _queryParamsStore = queryParamsStore; }
internal QueryProvider(QueryParametersStore queryParamsStore = null) { _queryParamsStore = queryParamsStore ?? new QueryParametersStore(); }
internal WhereQueryTranslator(QueryParametersStore queryParametersStore, Expression <Func <ShadowRow, bool> >[] externalPredicates = null) : base(queryParametersStore) { _externalPredicates = externalPredicates; }
internal OrderByQueryTranslator(QueryParametersStore queryParametersStore) : base(queryParametersStore) { }
internal FromSourceQueryTranslator(QueryParametersStore queryParamsStore, string sourceName) : base(queryParamsStore) { _sourceName = sourceName; }