Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Entity framework linq中两个计数不同的表的并集_Entity Framework_Linq To Sql - Fatal编程技术网

Entity framework linq中两个计数不同的表的并集

Entity framework linq中两个计数不同的表的并集,entity-framework,linq-to-sql,Entity Framework,Linq To Sql,我想将以下两个查询合并到一个列表中。怎么做 var query = (from a in xactCtxt.XactETL_Activity_Log join b in xactCtxt.XactETL_Shred_Mode on a.ShredModeID equals b.ShredModeID where a.CreatedDate >= startDate &

我想将以下两个查询合并到一个列表中。怎么做

var query  = (from a in xactCtxt.XactETL_Activity_Log
                             join b in xactCtxt.XactETL_Shred_Mode on a.ShredModeID equals b.ShredModeID
                             where a.CreatedDate >= startDate && a.CreatedDate <= endDate
                             select new { a.ActivityLogID,a.ShredQueueCount,a.ShredCompletedCount,a.ShredValFailureCount,a.ShredExceptionCount, a.CreatedDate, b.ShredModeStatus })                                
                             .ToList();

                var historyCount = (from h in source.Histories
                                    where h.TransactionDate >= startDate && h.TransactionDate <= endDate
                                    select h).Count();

有人能提出一些解决方案吗?您希望得到什么样的结果?