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
rawstatesoccurred 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
rawdataproductid(there multiple rows sameproductid), how can revert "s" these groupsproductidcan groupeventtype, ,summarisedurationsproductid?
Comments
Post a Comment