Linq data structuring -
i have 2 issues i'm struggling linq. appreciate if advise. have 2 lists rawstates
(storing rows of entity-downtime-uptime-eventtype
) , rawdata
list storing products' in , out times entity.
i want select elements
rawstates
occurred when still waiting entity processedforeach(var t in rawdata) var s = rawstates //i not sure if single logic clause in enough; .where(o => o.entity == t.entity && o.downdate > t.intime && o.update < t.outtime) .tolist();
if group
rawdata
productid
(there multiple rows sameproductid
), how can revert "s" these groupsproductid
can groupeventtype
, ,summarise
durationsproductid
?
Comments
Post a Comment