3
Reply

How to Fetch Different Values in LINQ?

Mohan Gupta

Mohan Gupta

11y
3.2k
0
Reply

    Example:var Query= from i in db.tbl select new{i.id,i.name....};

    Example:var Query= from i in db.tbl select new{i.id,i.name....};

    public List GetRequests(int reqStateID){return (from rs in db.ReqStateswhere rs.reqStateID== reqStateIDorderby rs.reqStateDate descendingselect rs).Distinct(new ReqStatesComparer()).ToList(); }