Interviews3 answers
How to Fetch Different Values in LINQ?
3 Answers
Example:
var Query= from i in db.tbl select new{i.id,i.name....};
sajidlkhan lodiPosted Feb 9, 2015, 11:07 PM EST
Example:
var Query= from i in db.tbl select new{i.id,i.name....};
sajidlkhan lodiPosted Feb 9, 2015, 11:07 PM EST
public List GetRequests(int reqStateID)
{
return (from rs in db.ReqStates
where rs.reqStateID== reqStateID
orderby rs.reqStateDate descending
select rs).Distinct(new ReqStatesComparer()).ToList();
}
Raj KumarPosted Apr 29, 2013, 9:14 AM EDT
