Esempio n. 1
0
        public SelectMultipleQueryFluentBuilderMapper <TCombinedModel> Map <TCombinedModel>(Expression <Func <TModel1, TModel2, TCombinedModel> > pr)
        {
            var inpParams = SelectQueryFluentBuilderUtils.ParseMap(pr);

            _p1.Name = inpParams[0];
            _p2.Name = inpParams[1];

            if (pr == null)
            {
                throw new ArgumentNullException(nameof(pr));
            }
            TablesList tl = new TablesList();

            tl.AddModel <TModel1>(_p1);
            tl.AddModel <TModel2>(_p2, _joinCondition1);
            return(new SelectMultipleQueryFluentBuilderMapper <TCombinedModel>(_executor, tl));
        }
Esempio n. 2
0
 public SelectMultipleQueryFluentBuilderMapper(QueryExecutor executor, TablesList tablesList)
 {
     _executor   = executor;
     _tablesList = tablesList;
 }