列名称和类型是相同的,但它来自两个独立的实体。这是一个简化的示例:
--Query View
var v_res = from s in db.V_CMUCUSTOMER
select s;
--Values from table less values from view
var res = from s in db.CMUCUSTOMERs
where !(from v in v_res
select v.ID).Contains(s.ID)
select s;
--join table and view values into one variable
var res_v_res = (from c in res
select c).Union(from v in v_res
select v);
但是,我收到以下错误:
实例参数:无法从“System.Linq.IQueryable”转换为 System.Linq.ParallelQuery