i currently have mutliple records for each "FileStreamID" but i only want to get one distinct one based on the latest "request date"
here is what i have now:
var resultx = from v in ctx.vEmailSents
where v.Lab_ID == 44
&& v.UploadDate >= this.BeginDate
select new
{
FileStreamID = v.FileStream_ID,
UploadDate = v.UploadDate,
RequestDate = v.DateSent,
TypeDesc = v.TypeDesc
};
and now i get about 33 records (but i should only get 12)
how can i change it to only give me distinct rows on filestream IDs?