User1400794712 posted
Hi jimmythegreat,
Just like what the error message said, you need to add select/group after the query, for example:
var items = from s in db.salesOrderDetail_T where
db.salesOrder_T
.Select(so => so.poDate <= toD && so.poDate >=fromD)
.Contatins(s.soIdx) && s.stat == stat
select s;
Then inside the Select(), there should be the property of salesOrder_T, not bool.
As my guessing of your need, the code can be:
var items = from s in db.salesOrderDetail_T where
db.salesOrder_T
.Where(so => so.poDate <= toD && so.poDate >=fromD)
.Select(so=>so.XXX)//The property which is simiar to s.soIdx
.Contatins(s.soIdx) && s.stat == stat
select s;
If you have any confusion, please give more details about your need.
Best Regards,
Daisy