A description of what the "query" is supposed to do would also be nice.
adam_k
Practically a Posting Shark
804 posts since Jun 2011
Reputation Points: 256
Solved Threads: 149
Assuming this is LINQ:
It would probably be something like:
var lstOfRecords =
(
from d in p.preventiveRecords.Where(d => d.Date_Done != null &&
p.preventiveRecords.Where( e =>e.VerifiedbySupervisor == null))
select new
{
d.ID,
d.Date_Done,
d.Date_Due,
d.SME,
d.Status,
d.History_ID,
d.Remark,
d.Verifiedbysupervisor,
d.Verifiedbymanager
}
).ToList();
...but if you're trying to actually return this from a method, you will need to create a custom class to hold the values and return an instance of that class.
thines01
Postaholic
2,425 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402